tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PollMedia Struct Reference

At most one of the optional fields can be present in any given object. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PollMedia>

Public Attributes

std::shared_ptr< Animationanimation { }
 Optional. Media is an animation, information about the animation.
std::shared_ptr< Audioaudio { }
 Optional. Media is an audio file, information about the file; currently, can't be received in a poll option.
std::shared_ptr< Documentdocument { }
 Optional. Media is a general file, information about the file; currently, can't be received in a poll option.
std::shared_ptr< Linklink { }
 Optional. The HTTP link attached to the poll option.
std::shared_ptr< LivePhotolivePhoto { }
 Optional. Media is a live photo, information about the live photo.
std::shared_ptr< Locationlocation { }
 Optional. Media is a shared location, information about the location.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo { }
 Optional. Media is a photo, available sizes of the photo.
std::shared_ptr< Stickersticker { }
 Optional. Media is a sticker, information about the sticker; currently, for poll options only.
std::shared_ptr< Venuevenue { }
 Optional. Media is a venue, information about the venue.
std::shared_ptr< Videovideo { }
 Optional. Media is a video, information about the video.

Detailed Description

At most one of the optional fields can be present in any given object.

Definition at line 10942 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::PollMedia::Ptr = std::shared_ptr<PollMedia>

Definition at line 10943 of file Types.h.

Member Data Documentation

◆ animation

std::shared_ptr<Animation> TgBot::PollMedia::animation { }

Optional. Media is an animation, information about the animation.

Definition at line 10948 of file Types.h.

◆ audio

std::shared_ptr<Audio> TgBot::PollMedia::audio { }

Optional. Media is an audio file, information about the file; currently, can't be received in a poll option.

Definition at line 10954 of file Types.h.

◆ document

std::shared_ptr<Document> TgBot::PollMedia::document { }

Optional. Media is a general file, information about the file; currently, can't be received in a poll option.

Definition at line 10960 of file Types.h.

◆ link

std::shared_ptr<Link> TgBot::PollMedia::link { }

Optional. The HTTP link attached to the poll option.

Definition at line 10965 of file Types.h.

◆ livePhoto

std::shared_ptr<LivePhoto> TgBot::PollMedia::livePhoto { }

Optional. Media is a live photo, information about the live photo.

Definition at line 10970 of file Types.h.

◆ location

std::shared_ptr<Location> TgBot::PollMedia::location { }

Optional. Media is a shared location, information about the location.

Definition at line 10975 of file Types.h.

◆ photo

std::optional<std::vector<std::shared_ptr<PhotoSize> > > TgBot::PollMedia::photo { }

Optional. Media is a photo, available sizes of the photo.

Definition at line 10980 of file Types.h.

◆ sticker

std::shared_ptr<Sticker> TgBot::PollMedia::sticker { }

Optional. Media is a sticker, information about the sticker; currently, for poll options only.

Definition at line 10986 of file Types.h.

◆ venue

std::shared_ptr<Venue> TgBot::PollMedia::venue { }

Optional. Media is a venue, information about the venue.

Definition at line 10991 of file Types.h.

◆ video

std::shared_ptr<Video> TgBot::PollMedia::video { }

Optional. Media is a video, information about the video.

Definition at line 10996 of file Types.h.


The documentation for this struct was generated from the following file: