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< Animation > animation { }
 Optional. Media is an animation, information about the animation.
std::shared_ptr< Audio > audio { }
 Optional. Media is an audio file, information about the file; currently, can't be received in a poll option.
std::shared_ptr< Document > document { }
 Optional. Media is a general file, information about the file; currently, can't be received in a poll option.
std::shared_ptr< Link > link { }
 Optional. The HTTP link attached to the poll option.
std::shared_ptr< LivePhoto > livePhoto { }
 Optional. Media is a live photo, information about the live photo.
std::shared_ptr< Location > location { }
 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< Sticker > sticker { }
 Optional. Media is a sticker, information about the sticker; currently, for poll options only.
std::shared_ptr< Venue > venue { }
 Optional. Media is a venue, information about the venue.
std::shared_ptr< Video > video { }
 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 10432 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 10433 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 10438 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 10443 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 10448 of file Types.h.

◆ link

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

Optional. The HTTP link attached to the poll option.

Definition at line 10452 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 10456 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 10460 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 10464 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 10469 of file Types.h.

◆ venue

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

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

Definition at line 10473 of file Types.h.

◆ video

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

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

Definition at line 10477 of file Types.h.


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