ForceReply

class aiogram.types.force_reply.ForceReply(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]

Bases: aiogram.types.base.TelegramObject

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

The last option is definitely more attractive. And if you use ForceReply in your bot‘s questions, it will receive the user’s answers even if it only receives replies, commands and mentions — without any extra work for the user.

https://core.telegram.org/bots/api#forcereply

Deserialize object

Parameters
  • conf

  • kwargs

classmethod create(selective: Optional[Boolean] = None)[source]

Create new force reply

Parameters

selective

Returns