MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / PollMedia

Class PollMedia

src/telegram/_poll.py:61–173  ·  view source on GitHub ↗

At most one of the optional fields can be present in any given object. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if all of their attributes are equal. .. versionadded:: 22.8 Args: animation (:class:`tele

Source from the content-addressed store, hash-verified

59
60
61class PollMedia(TelegramObject):
62 """
63 At most one of the optional fields can be present in any given object.
64
65 Objects of this class are comparable in terms of equality. Two objects of this class are
66 considered equal, if all of their attributes are equal.
67
68 .. versionadded:: 22.8
69
70 Args:
71 animation (:class:`telegram.Animation`, optional): Media is an animation, information about
72 the animation
73 audio (:class:`telegram.Audio`, optional): Media is an audio file, information about the
74 file; currently, can't be received in a poll option
75 document (:class:`telegram.Document`, optional): Media is a general file, information about
76 the file; currently, can't be received in a poll option
77 live_photo (:class:`telegram.LivePhoto`, optional): Media is a live photo, information
78 about the live photo
79 location (:class:`telegram.Location`, optional): Media is a shared location, information
80 about the location
81 photo (Sequence[:class:`telegram.PhotoSize`], optional): Media is a photo, available sizes
82 of the photo
83 sticker (:class:`telegram.Sticker`, optional): Media is a sticker, information about the
84 sticker; currently, for poll options only
85 venue (:class:`telegram.Venue`, optional): Media is a venue, information about the venue
86 video (:class:`telegram.Video`, optional): Media is a video, information about the video
87
88 Attributes:
89 animation (:class:`telegram.Animation`): Optional. Media is an animation, information about
90 the animation
91 audio (:class:`telegram.Audio`): Optional. Media is an audio file, information about the
92 file; currently, can't be received in a poll option
93 document (:class:`telegram.Document`): Optional. Media is a general file, information about
94 the file; currently, can't be received in a poll option
95 live_photo (:class:`telegram.LivePhoto`, optional): Media is a live photo, information
96 about the live photo
97 location (:class:`telegram.Location`): Optional. Media is a shared location, information
98 about the location
99 photo (tuple[:class:`telegram.PhotoSize`]): Optional. Media is a photo, available sizes
100 of the photo
101 sticker (:class:`telegram.Sticker`): Optional. Media is a sticker, information about the
102 sticker; currently, for poll options only
103 venue (:class:`telegram.Venue`): Optional. Media is a venue, information about the venue
104 video (:class:`telegram.Video`): Optional. Media is a video, information about the video
105 """
106
107 __slots__ = (
108 "animation",
109 "audio",
110 "document",
111 "live_photo",
112 "location",
113 "photo",
114 "sticker",
115 "venue",
116 "video",
117 )
118

Callers 4

poll_mediaFunction · 0.90
test_equalityMethod · 0.90
PollOptionTestBaseClass · 0.90
PollTestBaseClass · 0.90

Calls

no outgoing calls

Tested by 2

poll_mediaFunction · 0.72
test_equalityMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…