peyk.platforms.telegram.types.poll_media¶
Classes
|
At most one of the optional fields can be present in any given object. |
- class peyk.platforms.telegram.types.poll_media.PollMedia(animation: Animation | None = None, audio: Audio | None = None, document: Document | None = None, link: Link | None = None, live_photo: LivePhoto | None = None, location: Location | None = None, photo: List[PhotoSize] | None = None, sticker: object | None = None, venue: Venue | None = None, video: Video | None = None)[source]¶
Bases:
objectAt most one of the optional fields can be present in any given object.
- Variables:
animation (peyk.platforms.telegram.types.animation.Animation | None) – Media is an animation, information about the animation
audio (peyk.platforms.telegram.types.audio.Audio | None) – Media is an audio file, information about the file; currently, can’t be received in a poll option
document (peyk.platforms.telegram.types.document.Document | None) – Media is a general file, information about the file; currently, can’t be received in a poll option
live_photo (peyk.platforms.telegram.types.live_photo.LivePhoto | None) – Media is a live photo, information about the live photo
location (peyk.platforms.telegram.types.location.Location | None) – Media is a shared location, information about the location
photo (List[peyk.platforms.telegram.types.photo_size.PhotoSize] | None) – Media is a photo, available sizes of the photo
sticker (object | None) – Media is a sticker, information about the sticker; currently, for poll options only
venue (peyk.platforms.telegram.types.venue.Venue | None) – Media is a venue, information about the venue
video (peyk.platforms.telegram.types.video.Video | None) – Media is a video, information about the video
link (peyk.platforms.telegram.types.link.Link | None) – The HTTP link attached to the poll option
- sticker: object | None = None¶