Skip to content

class Tourmaline::ChatJoinRequest
inherits Reference #

Represents a join request sent to a chat.

Included modules

JSON::Serializable

Constructors#

.new(chat, from, user_chat_id, date, bio : String? = nil, invite_link : Tourmaline::ChatInviteLink? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#bio : String? #

Optional. Bio of the user.

View source

#bio=(bio : String?) #

Optional. Bio of the user.

View source

#chat : Tourmaline::Chat #

Chat to which the request was sent

View source

#chat=(chat : Tourmaline::Chat) #

Chat to which the request was sent

View source

#date : Time #

View source

#date=(date : Time) #

View source

#from : Tourmaline::User #

User that sent the join request

View source

#from=(from : Tourmaline::User) #

User that sent the join request

View source

Optional. Chat invite link that was used by the user to send the join request

View source

#invite_link=(invite_link : Tourmaline::ChatInviteLink?) #

Optional. Chat invite link that was used by the user to send the join request

View source

#user_chat_id : Int32 | Int64 #

Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.

View source

#user_chat_id=(user_chat_id : Int32 | Int64) #

Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.

View source