tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InputMediaPhoto Class Reference

Represents a photo to be sent. More...

#include <InputMediaPhoto.h>

Inheritance diagram for TgBot::InputMediaPhoto:
TgBot::InputMedia

Public Types

typedef std::shared_ptr< InputMediaPhotoPtr
 
- Public Types inherited from TgBot::InputMedia
typedef std::shared_ptr< InputMediaPtr
 

Public Member Functions

 InputMediaPhoto ()
 
- Public Member Functions inherited from TgBot::InputMedia
 InputMedia ()
 
virtual ~InputMedia ()
 

Public Attributes

bool hasSpoiler
 Optional. Pass True if the photo needs to be covered with a spoiler animation.
 
- Public Attributes inherited from TgBot::InputMedia
std::string type
 Type of the result.
 
std::string media
 File to send.
 
std::string caption
 Optional. Caption of the media to be sent, 0-1024 characters after entities parsing.
 
std::string parseMode
 Optional. Mode for parsing entities in the media caption.
 
std::vector< MessageEntity::PtrcaptionEntities
 Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
 

Static Public Attributes

static const std::string TYPE
 

Detailed Description

Represents a photo to be sent.

Definition at line 15 of file InputMediaPhoto.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<InputMediaPhoto> TgBot::InputMediaPhoto::Ptr

Definition at line 19 of file InputMediaPhoto.h.

Constructor & Destructor Documentation

◆ InputMediaPhoto()

TgBot::InputMediaPhoto::InputMediaPhoto ( )
inline

Definition at line 21 of file InputMediaPhoto.h.

Member Data Documentation

◆ hasSpoiler

bool TgBot::InputMediaPhoto::hasSpoiler

Optional. Pass True if the photo needs to be covered with a spoiler animation.

Definition at line 28 of file InputMediaPhoto.h.

◆ TYPE

const std::string TgBot::InputMediaPhoto::TYPE
static

Definition at line 17 of file InputMediaPhoto.h.


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