Skip to content
Back to top
View this page

# MessageAutoDeleteTimerChanged

class telegram.MessageAutoDeleteTimerChanged(message_auto_delete_time, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This 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_time` is equal.

  Available In

  `telegram.Message.message_auto_delete_timer_changed`

  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.timedelta` objects are accepted in addition to plain `int` values.

  message_auto_delete_time

    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 or `PTB_TIMEDELTA=1` as an environment variable.

    Type:

      `int` | `datetime.timedelta`