Function grammers_client::types::reply_markup::force_reply

source ·
pub fn force_reply() -> ForceReply
Expand description

“Forces” the user to send a reply.

This will cause the user’s application to automatically select the message for replying to it, although the user is still able to dismiss the reply and send a normal message.

See the return type for further configuration options.

§Examples

use grammers_client::{InputMessage, reply_markup};

let markup = reply_markup::force_reply().single_use();
client.send_message(chat, InputMessage::text("Reply me!").reply_markup(&markup)).await?;