Class: Telegrammer::DataTypes::Chat
- Defined in:
- lib/telegrammer/data_types/chat.rb
Overview
Telegram Chat data type
See more at core.telegram.org/bots/api#chat
Instance Attribute Summary collapse
-
#first_name ⇒ String
Optional.
-
#id ⇒ Integer
Unique identifier for this chat, not exceeding 1e13 by absolute value.
-
#last_name ⇒ String
Optional.
-
#title ⇒ String
Optional.
-
#type ⇒ String
Type of chat, can be either “private”, or “group”, or “channel”.
-
#username ⇒ String
Optional.
Instance Attribute Details
#first_name ⇒ String
Optional. First name of the other party in a private chat
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def first_name @first_name end |
#id ⇒ Integer
Unique identifier for this chat, not exceeding 1e13 by absolute value
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def id @id end |
#last_name ⇒ String
Optional. Last name of the other party in a private chat
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def last_name @last_name end |
#title ⇒ String
Optional. Title, for channels and group chats
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def title @title end |
#type ⇒ String
Type of chat, can be either “private”, or “group”, or “channel”
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def type @type end |
#username ⇒ String
Optional. Username, for private chats and channels if available
13 14 15 |
# File 'lib/telegrammer/data_types/chat.rb', line 13 def username @username end |