Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# MessageOriginChat

class telegram.MessageOriginChat(date, sender_chat, author_signature=None, *, api_kwargs=None)

  Bases: `telegram.MessageOrigin`

  The message was originally sent on behalf of a chat to a group chat.

  Available In

  - `telegram.ExternalReplyInfo.origin`

  - `telegram.Message.forward_origin`

  New in version 20.8.

  Parameters:

    - date (`datetime.datetime`) – Date the message was sent originally. The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

    - sender_chat (`telegram.Chat`) – Chat that sent the message originally.

    - author_signature (`str`, optional) – For messages originally sent by an anonymous chat administrator, original message author signature

  type

    Type of the message origin. Always `'chat'`.

    Type:

      `str`

  date

    Date the message was sent originally. The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

    Type:

      `datetime.datetime`

  sender_chat

    Chat that sent the message originally.

    Type:

      `telegram.Chat`

  author_signature

    Optional. For messages originally sent by an anonymous chat administrator, original message author signature

    Type:

      `str`