Class: BotUser
- Inherits:
-
Object
- Object
- BotUser
- Defined in:
- lib/telegram_bot_builder/bot_user.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 3 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 2 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 4 def last_name @last_name end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 6 def type @type end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 5 def username @username end |
Instance Method Details
#sendMessage(message) ⇒ Object
8 9 10 11 12 |
# File 'lib/telegram_bot_builder/bot_user.rb', line 8 def sendMessage() .chat = self .send end |