Class: Telegrammer::DataTypes::ForceReply

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#force_replyBoolean

Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply’

Returns:

  • (Boolean)

    the current value of force_reply



9
10
11
# File 'lib/telegrammer/data_types/force_reply.rb', line 9

def force_reply
  @force_reply
end

#selectiveBoolean

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.

Returns:

  • (Boolean)

    the current value of selective



9
10
11
# File 'lib/telegrammer/data_types/force_reply.rb', line 9

def selective
  @selective
end