class
Hamilton::Types::ChatInviteLink
- Hamilton::Types::ChatInviteLink
- Reference
- Object
Overview
Represents an invite link for a chat.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chat_invite_link.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#creates_join_request : Bool
True, if users joining the chat via the link need to be approved by chat administrators.
-
#creates_join_request=(creates_join_request : Bool)
True, if users joining the chat via the link need to be approved by chat administrators.
-
#creator : Hamilton::Types::User
Creator of the link.
-
#creator=(creator : Hamilton::Types::User)
Creator of the link.
-
#expire_date : Int32 | Nil
Point in time (Unix timestamp) when the link will expire or has been expired.
-
#expire_date=(expire_date : Int32 | Nil)
Point in time (Unix timestamp) when the link will expire or has been expired.
-
#invite_link : String
The invite link.
-
#invite_link=(invite_link : String)
The invite link.
-
#is_primary : Bool
True, if the link is primary.
-
#is_primary=(is_primary : Bool)
True, if the link is primary.
-
#is_revoked : Bool
True, if the link is revoked.
-
#is_revoked=(is_revoked : Bool)
True, if the link is revoked.
-
#member_limit : Int32 | Nil
The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
-
#member_limit=(member_limit : Int32 | Nil)
The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
-
#name : String | Nil
Invite link name.
-
#name=(name : String | Nil)
Invite link name.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#pending_join_request_count : Int32 | Nil
Number of pending join requests created using this link.
-
#pending_join_request_count=(pending_join_request_count : Int32 | Nil)
Number of pending join requests created using this link.
-
#subscription_period : Int32 | Nil
The number of seconds the subscription will be active for before the next payment.
-
#subscription_period=(subscription_period : Int32 | Nil)
The number of seconds the subscription will be active for before the next payment.
-
#subscription_price : Int32 | Nil
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link.
-
#subscription_price=(subscription_price : Int32 | Nil)
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
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.
Point in time (Unix timestamp) when the link will expire or has been expired.
Point in time (Unix timestamp) when the link will expire or has been expired.
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 “…”.
The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
Number of pending join requests created using this link.
Number of pending join requests created using this link.
The number of seconds the subscription will be active for before the next payment.
The number of seconds the subscription will be active for before the next payment.
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link.
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link.