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

# MessageOriginHiddenUser

class telegram.MessageOriginHiddenUser(date, sender_user_name, *, api_kwargs=None)

  Bases: `telegram.MessageOrigin`

  The message was originally sent by an unknown user.

  Available In

  - `telegram.ExternalReplyInfo.origin`

  - `telegram.Message.forward_origin`

  Added 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_user_name (`str`) – Name of the user that sent the message originally.

  type

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

    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_user_name

    Name of the user that sent the message originally.

    Type:

      `str`