efb-telegram-master
efb-telegram-master copied to clipboard
[BUG] Replace text with media on send message will send duplicate messages
Describe the bug
Send media twice after replace a text message with media
To Reproduce
- send a message with a placeholder text e.g.
Download failed - edit the message with
edit=True,edit_media=Trueby a Media and no caption - telegram raise
Message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the messagehere because the caption isNonewhen edit media
Expected behavior
Only send image once
Screenshots
after edit message
Version information (please complete the following information):
- OS: linux
- Detailed Python, EFB and module versions: (you can obtain this by running
ehforwarderbot --version) python: 3.11 ehforwarderbot: 2.1.1
EH Forwarder Bot
Version: 2.1.1
Python version:
3.11
Master channel:
efb-telegram-master: 2.3.0
Slave channel:
efb-wechat-comwechat-slave
Additional context
Add any other context about the problem here.