VideoChatEnded

class telegram.VideoChatEnded(duration, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents a service message about a video chat ended in the chat.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their duration are equal.

Added in version 13.4.

Changed in version 20.0: This class was renamed from VoiceChatEnded in accordance to Bot API 6.0.

Changed in version v22.2: As part of the migration to representing time periods using datetime.timedelta, equality comparison now considers integer durations and equivalent timedeltas as equal.

Parameters:

duration (int | datetime.timedelta) –

Voice chat duration in seconds.

Changed in version v22.2: datetime.timedelta objects are accepted in addition to plain int values.

duration[source]

Voice chat duration in seconds.

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