Class: BotUser

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram_bot_builder/bot_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#first_nameObject

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

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/telegram_bot_builder/bot_user.rb', line 2

def id
  @id
end

#last_nameObject

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

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/telegram_bot_builder/bot_user.rb', line 6

def type
  @type
end

#usernameObject

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(message)
  message.chat = self

  message.send
end