Class: Telegrammer::DataTypes::ForceReply
- Defined in:
- lib/telegrammer/data_types/force_reply.rb
Overview
Telegram ForceReply data type
See more at core.telegram.org/bots/api#forcereply
Instance Attribute Summary collapse
-
#force_reply ⇒ Boolean
Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply’.
-
#selective ⇒ Boolean
Optional.
Instance Attribute Details
#force_reply ⇒ Boolean
Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply’
9 10 11 |
# File 'lib/telegrammer/data_types/force_reply.rb', line 9 def force_reply @force_reply end |
#selective ⇒ Boolean
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 (has reply_to_message_id), sender of the original message.
9 10 11 |
# File 'lib/telegrammer/data_types/force_reply.rb', line 9 def selective @selective end |