efb-telegram-master icon indicating copy to clipboard operation
efb-telegram-master copied to clipboard

[BUG] Replace text with media on send message will send duplicate messages

Open jiz4oh opened this issue 8 months ago • 0 comments

Describe the bug

Send media twice after replace a text message with media

To Reproduce

  1. send a message with a placeholder text e.g. Download failed
  2. edit the message with edit=True,edit_media=True by a Media and no caption
  3. 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

Image

Image

after edit message Image

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.

jiz4oh avatar Apr 27 '25 09:04 jiz4oh