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

Arguments for Api::setMessageReaction. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId { }
 Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
std::int32_t messageId { }
 Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.
std::vector< std::shared_ptr< ReactionType > > reaction = { }
 A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.
bool isBig = false
 Pass True to set the reaction with a big animation.

Detailed Description

Arguments for Api::setMessageReaction.

Definition at line 20637 of file Types.h.

Member Data Documentation

◆ chatId

std::variant<std::int64_t, std::string> TgBot::SetMessageReactionArgs::chatId { }

Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.

Definition at line 20642 of file Types.h.

◆ isBig

bool TgBot::SetMessageReactionArgs::isBig = false

Pass True to set the reaction with a big animation.

Definition at line 20663 of file Types.h.

◆ messageId

std::int32_t TgBot::SetMessageReactionArgs::messageId { }

Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.

Definition at line 20649 of file Types.h.

◆ reaction

std::vector<std::shared_ptr<ReactionType> > TgBot::SetMessageReactionArgs::reaction = { }

A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.

Definition at line 20658 of file Types.h.


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