Class: PrivateChat
Overview
Returned only for private chat
It extends from Chat class.
Instance Method Summary collapse
-
#first_name ⇒ Object
Optional
. -
#initialize(chat) ⇒ PrivateChat
constructor
:nodoc:.
-
#last_name ⇒ Object
Optional.
Last name of the other party in aprivate
chat.
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_name ⇒ Object
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_name ⇒ Object
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 |