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=True by 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 message here because the caption is None when 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.
Describe the bug
Send media twice after replace a text message with media
To Reproduce
Download failededit=True,edit_media=Trueby a Media and no captionMessage 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 mediaExpected behavior
Only send image once
Screenshots
after edit message

Version information (please complete the following information):
ehforwarderbot --version)python: 3.11
ehforwarderbot: 2.1.1
Additional context
Add any other context about the problem here.