Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Add a method to ForwardMessages class #1402

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Erwinex
Copy link

@Erwinex Erwinex commented Mar 14, 2024

Adding a method to ForwardMessages class that works like forward_messages but it won't mention the sender name.

Adding a method to ForwardMessages class that works like forward_messages but it won't mention the sender name.
@KurimuzonAkuma
Copy link

Why not just add drop_author to an existing method... ☠️☠️☠️

… instead of making new method.

Yeah it's what open source community is always find a better way 😄
@Erwinex
Copy link
Author

Erwinex commented Mar 14, 2024

That's definitely a cleaner way thanks I made changes could you check to make sure everything is fine? 🙃

@SpEcHiDe
Copy link
Contributor

image

Hi, I think you can expose both drop_author and drop_media_captions flags as documented in messages.forwardMessages

@Erwinex
Copy link
Author

Erwinex commented Mar 15, 2024

Hi, thanks for suggestion I added hide_captions not drop_media_captions becuase I think hide_author and hide_captions are more user friendly 🫠

@hellbowe
Copy link

hellbowe commented Apr 3, 2024

Actually there is copy_message() that literally the same as forward_message(), but without sender's name

Edit: And you can edit it's captions too, as well as set it to empty string, i.e. deleting caption
copy_message(..., caption="")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants