Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# MessageId

class telegram.MessageId(message_id, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents a unique message identifier.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `message_id` is equal.

  Returned In

  `telegram.Bot.copy_message()`

  Parameters:

    message_id (`int`) – Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be `0` and the relevant message will be unusable until it is actually sent.

  message_id

    Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be `0` and the relevant message will be unusable until it is actually sent.

    Type:

      `int`