Class: TelegramBot::MessageProxy

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
ShorthandMethods
Defined in:
lib/telegram_bot/message_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ShorthandMethods

#forward_message, #reply, #send_chat_action, #send_message

Constructor Details

#initialize(bot, message, matcher) ⇒ MessageProxy

Returns a new instance of MessageProxy.



10
11
12
13
14
# File 'lib/telegram_bot/message_proxy.rb', line 10

def initialize(bot, message, matcher)
  @bot = bot
  @message = message
  @matcher = matcher
end

Instance Attribute Details

#botObject

Returns the value of attribute bot.



8
9
10
# File 'lib/telegram_bot/message_proxy.rb', line 8

def bot
  @bot
end

#matcherObject

Returns the value of attribute matcher.



8
9
10
# File 'lib/telegram_bot/message_proxy.rb', line 8

def matcher
  @matcher
end

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/telegram_bot/message_proxy.rb', line 8

def message
  @message
end