MessageAutoDeleteTimerChanged¶
- class telegram.MessageAutoDeleteTimerChanged(message_auto_delete_time, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object represents a service message about a change in auto-delete timer settings.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
message_auto_delete_timeis equal.Available In
Added in version 13.4.
- Parameters:
message_auto_delete_time (
int|datetime.timedelta) –New auto-delete time for messages in the chat.
Changed in version v22.2:
datetime.timedeltaobjects are accepted in addition to plainintvalues.
- message_auto_delete_time[source]¶
New auto-delete time for messages in the chat.
Deprecated since version v22.2: In a future major version this attribute will be of type
datetime.timedelta. You can opt-in early by setting PTB_TIMEDELTA=true orPTB_TIMEDELTA=1as an environment variable.- Type: