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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<EphemeralMessageParameters>

Public Attributes

std::optional< std::uint64_t > receiverUserId { }
 Optional. Identifier of the user who will receive the message; required unless the message is sent as an ephemeral reply to a callback query. If omitted, then the parameter chat_id of the method is ignored. If specified together with callback_query_id, then it must be the identifier of the user who pressed the button. Must be omitted for messages sent in chats where the bot isn't a member, unless the message is a reply to an ephemeral message. It is not guaranteed that the user will receive the message, especially if they are offline. See here for more details.
std::optional< std::string > callbackQueryId { }
 Optional. Identifier of the callback query which triggered the message, if any. If specified and receiver_user_id is omitted, then the message is sent as an ephemeral reply to the callback query and will be shown only to the user who pressed the button. Ephemeral replies can't be sent to callback queries from messages in channel direct messages chats. The bot must still answer the callback query using answerCallbackQuery.
std::optional< bool > replaceCallbackQueryMessage { }
 Optional. Pass True if the ephemeral message must be shown in place of the original message. Must be False for callback queries from ephemeral messages, which must be edited using regular editEphemeralMessage… methods.

Detailed Description

Definition at line 3472 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 3473 of file Types.h.

Member Data Documentation

◆ callbackQueryId

std::optional<std::string> TgBot::EphemeralMessageParameters::callbackQueryId { }

Optional. Identifier of the callback query which triggered the message, if any. If specified and receiver_user_id is omitted, then the message is sent as an ephemeral reply to the callback query and will be shown only to the user who pressed the button. Ephemeral replies can't be sent to callback queries from messages in channel direct messages chats. The bot must still answer the callback query using answerCallbackQuery.

Definition at line 3492 of file Types.h.

◆ receiverUserId

std::optional<std::uint64_t> TgBot::EphemeralMessageParameters::receiverUserId { }

Optional. Identifier of the user who will receive the message; required unless the message is sent as an ephemeral reply to a callback query. If omitted, then the parameter chat_id of the method is ignored. If specified together with callback_query_id, then it must be the identifier of the user who pressed the button. Must be omitted for messages sent in chats where the bot isn't a member, unless the message is a reply to an ephemeral message. It is not guaranteed that the user will receive the message, especially if they are offline. See here for more details.

Definition at line 3484 of file Types.h.

◆ replaceCallbackQueryMessage

std::optional<bool> TgBot::EphemeralMessageParameters::replaceCallbackQueryMessage { }

Optional. Pass True if the ephemeral message must be shown in place of the original message. Must be False for callback queries from ephemeral messages, which must be edited using regular editEphemeralMessage… methods.

Definition at line 3498 of file Types.h.


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