class Tourmaline::ChatInviteLink
- Tourmaline::ChatInviteLink
- Reference
- Object
Overview
Represents an invite link for a chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(invite_link : String, creator : Tourmaline::User, creates_join_request : Bool, is_primary : Bool, is_revoked : Bool, name : String | Nil = nil, expire_date : Int32 | Int64 | Nil = nil, member_limit : Int32 | Int64 | Nil = nil, pending_join_request_count : Int32 | Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#creates_join_request=(creates_join_request : Bool)
True, if users joining the chat via the link need to be approved by chat administrators
-
#creates_join_request? : Bool
True, if users joining the chat via the link need to be approved by chat administrators
-
#creator : Tourmaline::User
Creator of the link
-
#creator=(creator : Tourmaline::User)
Creator of the link
- #expire_date : Time | Nil
- #expire_date=(expire_date : Time | Nil)
-
#invite_link : String
The invite link.
-
#invite_link=(invite_link : String)
The invite link.
-
#is_primary=(is_primary : Bool)
True, if the link is primary
-
#is_primary? : Bool
True, if the link is primary
-
#is_revoked=(is_revoked : Bool)
True, if the link is revoked
-
#is_revoked? : Bool
True, if the link is revoked
-
#member_limit : Int32 | Int64 | Nil
Optional.
-
#member_limit=(member_limit : Int32 | Int64 | Nil)
Optional.
-
#name : String | Nil
Optional.
-
#name=(name : String | Nil)
Optional.
-
#pending_join_request_count : Int32 | Int64 | Nil
Optional.
-
#pending_join_request_count=(pending_join_request_count : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
True, if users joining the chat via the link need to be approved by chat administrators
True, if users joining the chat via the link need to be approved by chat administrators
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".
Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
Optional. Number of pending join requests created using this link
Optional. Number of pending join requests created using this link