|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. https://core.telegram.org/bots/features#privacy-mode Example. A poll bot for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll: More...
#include <ForceReply.hpp>
Public Member Functions | |
| ForceReply ()=default | |
| ForceReply (const nl::json &json) | |
| nl::json | toJson () const override |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) override |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::IReplyMarkup | |
| virtual | ~IReplyMarkup ()=default |
Public Attributes | |
| bool | forceReply {} |
| Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'. | |
| std::string | inputFieldPlaceholder |
| Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters. | |
| bool | selective {} |
| Optional. Use this parameter if you want to force reply from specific users only. Targets: | |
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. https://core.telegram.org/bots/features#privacy-mode Example. A poll bot for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll:
Definition at line 15 of file ForceReply.hpp.
|
default |
|
inlineexplicit |
Definition at line 17 of file ForceReply.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Implements tgbotxx::IReplyMarkup.
Definition at line 45 of file ForceReply.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Implements tgbotxx::IReplyMarkup.
Definition at line 36 of file ForceReply.hpp.
| bool tgbotxx::ForceReply::forceReply {} |
Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'.
Definition at line 22 of file ForceReply.hpp.
| std::string tgbotxx::ForceReply::inputFieldPlaceholder |
Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters.
Definition at line 25 of file ForceReply.hpp.
| bool tgbotxx::ForceReply::selective {} |
Optional. Use this parameter if you want to force reply from specific users only. Targets:
Definition at line 31 of file ForceReply.hpp.