MessageOriginUser¶
- class telegram.MessageOriginUser(date, sender_user, *, api_kwargs=None)[source]¶
Bases:
telegram.MessageOrigin
The message was originally sent by a known user.
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 unlesstelegram.ext.Defaults.tzinfo
is used.sender_user (
telegram.User
) – User that sent the message originally.
- date[source]¶
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: