Class: Telegrammer::DataTypes::Chat

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#first_nameString

Optional. First name of the other party in a private chat

Returns:

  • (String)

    the current value of first_name



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def first_name
  @first_name
end

#idInteger

Unique identifier for this chat, not exceeding 1e13 by absolute value

Returns:

  • (Integer)

    the current value of id



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def id
  @id
end

#last_nameString

Optional. Last name of the other party in a private chat

Returns:

  • (String)

    the current value of last_name



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def last_name
  @last_name
end

#titleString

Optional. Title, for channels and group chats

Returns:

  • (String)

    the current value of title



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def title
  @title
end

#typeString

Type of chat, can be either “private”, or “group”, or “channel”

Returns:

  • (String)

    the current value of type



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def type
  @type
end

#usernameString

Optional. Username, for private chats and channels if available

Returns:

  • (String)

    the current value of username



13
14
15
# File 'lib/telegrammer/data_types/chat.rb', line 13

def username
  @username
end