Class: Telegram::Bot::Types::ChatMember

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ChatMember

Returns a new instance of ChatMember.



20
21
22
# File 'lib/telegram/bot/types/chat_member.rb', line 20

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#can_add_web_page_previewsObject

Returns the value of attribute can_add_web_page_previews.



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

def can_add_web_page_previews
  @can_add_web_page_previews
end

#can_be_editedObject

Returns the value of attribute can_be_edited.



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

def can_be_edited
  @can_be_edited
end

#can_change_infoObject

Returns the value of attribute can_change_info.



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

def can_change_info
  @can_change_info
end

#can_delete_messagesObject

Returns the value of attribute can_delete_messages.



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

def can_delete_messages
  @can_delete_messages
end

#can_edit_messagesObject

Returns the value of attribute can_edit_messages.



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

def can_edit_messages
  @can_edit_messages
end

#can_invite_usersObject

Returns the value of attribute can_invite_users.



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

def can_invite_users
  @can_invite_users
end

#can_pin_messagesObject

Returns the value of attribute can_pin_messages.



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

def can_pin_messages
  @can_pin_messages
end

#can_post_messagesObject

Returns the value of attribute can_post_messages.



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

def can_post_messages
  @can_post_messages
end

#can_promote_membersObject

Returns the value of attribute can_promote_members.



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

def can_promote_members
  @can_promote_members
end

#can_restrict_membersObject

Returns the value of attribute can_restrict_members.



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

def can_restrict_members
  @can_restrict_members
end

#can_send_media_messagesObject

Returns the value of attribute can_send_media_messages.



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

def can_send_media_messages
  @can_send_media_messages
end

#can_send_messagesObject

Returns the value of attribute can_send_messages.



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

def can_send_messages
  @can_send_messages
end

#can_send_other_messagesObject

Returns the value of attribute can_send_other_messages.



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

def can_send_other_messages
  @can_send_other_messages
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#until_dateObject

Returns the value of attribute until_date.



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

def until_date
  @until_date
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end