Class: Telegram::Bot::Types::Chat

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/chat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_administratorsObject

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_setObject

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def description
  @description
end

#first_nameObject

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

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def id
  @id
end

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_nameObject

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

#photoObject

Returns the value of attribute photo.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def photo
  @photo
end

#pinned_messageObject

Returns the value of attribute pinned_message.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def pinned_message
  @pinned_message
end

#sticker_set_nameObject

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

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def title
  @title
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def type
  @type
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/telegram/bot/types/chat.rb', line 3

def username
  @username
end