Class: PrivateChat

Inherits:
Chat
  • Object
show all
Defined in:
lib/objects/chat.rb

Overview

Returned only for private chat

It extends from Chat class.

Instance Method Summary collapse

Methods inherited from Chat

#channel?, #has_title?, #id, #private?, #supergroup?, #title, #type, #username

Constructor Details

#initialize(chat) ⇒ PrivateChat

:nodoc:



62
63
64
# File 'lib/objects/chat.rb', line 62

def initialize(chat) # :nodoc:
  super(chat)
end

Instance Method Details

#first_nameObject

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



67
68
69
# File 'lib/objects/chat.rb', line 67

def first_name
  @chat.first_name
end

#last_nameObject

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



72
73
74
# File 'lib/objects/chat.rb', line 72

def last_name
  @chat.last_name
end