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

Arguments for Api::copyMessages. 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::variant< std::int64_t, std::string > fromChatId { }
 Unique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format @username).
std::vector< std::int32_t > messageIds { }
 A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.
std::int32_t messageThreadId = 0
 Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only.
bool disableNotification = false
 Sends the messages silently. Users will receive a notification with no sound.
bool protectContent = false
 Protects the contents of the sent messages from forwarding and saving.
bool removeCaption = false
 Pass True to copy the messages without their captions.
std::int64_t directMessagesTopicId = 0
 Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat.

Detailed Description

Arguments for Api::copyMessages.

Definition at line 14851 of file Types.h.

Member Data Documentation

◆ chatId

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

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

Definition at line 14856 of file Types.h.

◆ directMessagesTopicId

std::int64_t TgBot::CopyMessagesArgs::directMessagesTopicId = 0

Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat.

Definition at line 14899 of file Types.h.

◆ disableNotification

bool TgBot::CopyMessagesArgs::disableNotification = false

Sends the messages silently. Users will receive a notification with no sound.

Definition at line 14883 of file Types.h.

◆ fromChatId

std::variant<std::int64_t, std::string> TgBot::CopyMessagesArgs::fromChatId { }

Unique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format @username).

Definition at line 14863 of file Types.h.

◆ messageIds

std::vector<std::int32_t> TgBot::CopyMessagesArgs::messageIds { }

A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.

Definition at line 14870 of file Types.h.

◆ messageThreadId

std::int32_t TgBot::CopyMessagesArgs::messageThreadId = 0

Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only.

Definition at line 14877 of file Types.h.

◆ protectContent

bool TgBot::CopyMessagesArgs::protectContent = false

Protects the contents of the sent messages from forwarding and saving.

Definition at line 14888 of file Types.h.

◆ removeCaption

bool TgBot::CopyMessagesArgs::removeCaption = false

Pass True to copy the messages without their captions.

Definition at line 14893 of file Types.h.


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