Skip to content

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

@jiz4oh

Description

@jiz4oh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions