Arguments for Api::copyMessages.
More...
#include <Types.h>
|
| 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::uint32_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::uint32_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::uint64_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.
|
Arguments for Api::copyMessages.
Definition at line 15692 of file Types.h.
◆ 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 15697 of file Types.h.
◆ directMessagesTopicId
| std::uint64_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 15740 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 15724 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 15704 of file Types.h.
◆ messageIds
| std::vector<std::uint32_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 15711 of file Types.h.
◆ messageThreadId
| std::uint32_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 15718 of file Types.h.
◆ protectContent
| bool TgBot::CopyMessagesArgs::protectContent = false |
Protects the contents of the sent messages from forwarding and saving.
Definition at line 15729 of file Types.h.
◆ removeCaption
| bool TgBot::CopyMessagesArgs::removeCaption = false |
Pass True to copy the messages without their captions.
Definition at line 15734 of file Types.h.
The documentation for this struct was generated from the following file: