Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants