class Telegram::API::ChatJoinRequest
- Telegram::API::ChatJoinRequest
- Telegram::API::Type
- Reference
- Object
Overview
Represents a join request sent to a chat.
Defined in:
telegram/api/generated/types.crConstructors
- .new(chat : Chat, from : User, date : Time, bio : String | Nil = nil, invite_link : ChatInviteLink | Nil = nil)
-
.new(pull : JSON::PullParser)
Represents a join request sent to a chat.
Instance Method Summary
-
#bio : String | Nil
Optional.
-
#bio=(bio : String | Nil)
Optional.
-
#chat : Chat
Chat to which the request was sent
-
#chat=(chat : Chat)
Chat to which the request was sent
-
#date : Time
Date the request was sent in Unix time
-
#date=(date : Time)
Date the request was sent in Unix time
-
#from : User
User that sent the join request
-
#from=(from : User)
User that sent the join request
-
#invite_link : ChatInviteLink | Nil
Optional.
-
#invite_link=(invite_link : ChatInviteLink | Nil)
Optional.
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(chat : Chat, from : User, date : Time, bio : String | Nil = nil, invite_link : ChatInviteLink | Nil = nil)
#
Instance Method Detail
def invite_link : ChatInviteLink | Nil
#
Optional. Chat invite link that was used by the user to send the join request
def invite_link=(invite_link : ChatInviteLink | Nil)
#
Optional. Chat invite link that was used by the user to send the join request