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
Erwinex wants to merge 3 commits into
pyrogram:masterfrom
Erwinex:patch-1
Open

Erwinex wants to merge 3 commits into
pyrogram:masterfrom
Erwinex:patch-1

Conversation

@Erwinex

@Erwinex Erwinex commented Mar 14, 2024

Copy link
Copy Markdown

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
Copy Markdown

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

Erwinex commented Mar 14, 2024

Copy link
Copy Markdown
Author

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

@SpEcHiDe

Copy link
Copy Markdown
Contributor

image

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

@Erwinex

Erwinex commented Mar 15, 2024

Copy link
Copy Markdown
Author

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

hellbowe commented Apr 3, 2024 •

Copy link
Copy Markdown

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="")

This branch has not been deployed

No deployments
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