| tgbot-cpp
    | 
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'). More...
#include <ForceReply.h>
 
  
| Public Types | |
| typedef std::shared_ptr< ForceReply > | Ptr | 
| Public Types inherited from TgBot::GenericReply | |
| typedef std::shared_ptr< GenericReply > | Ptr | 
| 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. | |
| Additional Inherited Members | |
| Public Member Functions inherited from TgBot::GenericReply | |
| virtual | ~GenericReply () | 
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.
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 25 of file ForceReply.h.
| typedef std::shared_ptr<ForceReply> TgBot::ForceReply::Ptr | 
Definition at line 28 of file ForceReply.h.
| bool TgBot::ForceReply::forceReply | 
Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'.
Definition at line 33 of file ForceReply.h.
| std::string TgBot::ForceReply::inputFieldPlaceholder | 
Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters.
Definition at line 38 of file ForceReply.h.
| bool TgBot::ForceReply::selective | 
Optional. Use this parameter if you want to force reply from specific users only.
Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Definition at line 45 of file ForceReply.h.