Skip to content

editMessageText returns bool for inline messages but library always unmarshals into models.Message #242

@lxlyb

Description

@lxlyb

According to the official Telegram Bot API documentation, editMessageText behaves differently depending on the message type:

  • When editing a normal chat message, it returns a Message
  • When editing an inline message (using inline_message_id), it returns true (bool)

However, in go-telegram/bot, EditMessageText always attempts to unmarshal the result into models.Message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions