VideoChatEnded¶
- class telegram.VideoChatEnded(duration, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis 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
durationare equal.Available In
Added in version 13.4.
Changed in version 20.0: This class was renamed from
VoiceChatEndedin 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.timedeltaobjects are accepted in addition to plainintvalues.
- 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 orPTB_TIMEDELTA=1as an environment variable.- Type: