Class: Telegram::Bot::Types::Chat
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Chat
- Defined in:
- lib/telegram/bot/types/chat.rb
Instance Attribute Summary collapse
-
#all_members_are_administrators ⇒ Object
Returns the value of attribute all_members_are_administrators.
-
#can_set_sticker_set ⇒ Object
Returns the value of attribute can_set_sticker_set.
-
#description ⇒ Object
Returns the value of attribute description.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invite_link ⇒ Object
Returns the value of attribute invite_link.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#pinned_message ⇒ Object
Returns the value of attribute pinned_message.
-
#sticker_set_name ⇒ Object
Returns the value of attribute sticker_set_name.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Chat
constructor
A new instance of Chat.
Constructor Details
#initialize(attributes) ⇒ Chat
Returns a new instance of Chat.
17 18 19 |
# File 'lib/telegram/bot/types/chat.rb', line 17 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#all_members_are_administrators ⇒ Object
Returns the value of attribute all_members_are_administrators.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def all_members_are_administrators @all_members_are_administrators end |
#can_set_sticker_set ⇒ Object
Returns the value of attribute can_set_sticker_set.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def can_set_sticker_set @can_set_sticker_set end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def description @description end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def id @id end |
#invite_link ⇒ Object
Returns the value of attribute invite_link.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def invite_link @invite_link end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def last_name @last_name end |
#photo ⇒ Object
Returns the value of attribute photo.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def photo @photo end |
#pinned_message ⇒ Object
Returns the value of attribute pinned_message.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def @pinned_message end |
#sticker_set_name ⇒ Object
Returns the value of attribute sticker_set_name.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def sticker_set_name @sticker_set_name end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def type @type end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/telegram/bot/types/chat.rb', line 3 def username @username end |