Skip to content

editMessageText >> no cusom emoji when editing rich_message #865

Description

@MorozovNyam

Hello everyone

def edit_message(self, message, rich_text, **commandDict):
        command = "editMessageText"

        chat_id = commandDict.get("chat_id")
        if not chat_id:
            chat_id = self.reserved_chat_id

        result = self.request(
            command,
            chat_id=chat_id,
            rich_message={
                "html": rich_text,
            },
            message_id=message.get("message_id") if message.get("message_id") else message,
            **commandDict
        )
        return result["result"]

when i call edit_message and in my new rich_text appears <tg-emoji emoji-id="5429326871076571411">🙂</tg-emoji>, bot api changes this premium emoji to alternative emoji of this custom emoji (not 🙂). i have telegram premium (when i use sendRichMessage telegram send message with premium emoji)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions