Class: TD::Types::ChatInviteLink
- Defined in:
- lib/tdlib/types/chat_invite_link.rb
Overview
Contains a chat invite link.
Instance Attribute Summary collapse
-
#creator_user_id ⇒ Integer
User identifier of an administrator created the link.
-
#date ⇒ Integer
Point in time (Unix timestamp) when the link was created.
-
#edit_date ⇒ Integer
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.
-
#expire_date ⇒ Integer
Point in time (Unix timestamp) when the link will expire; 0 if never.
-
#invite_link ⇒ TD::Types::String
Chat invite link.
-
#is_primary ⇒ Boolean
True, if the link is primary.
-
#is_revoked ⇒ Boolean
True, if the link was revoked.
-
#member_count ⇒ Integer
Number of chat members, which joined the chat using the link.
-
#member_limit ⇒ Integer
The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.
Method Summary
Methods inherited from Base
Instance Attribute Details
#creator_user_id ⇒ Integer
User identifier of an administrator created the link.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def creator_user_id @creator_user_id end |
#date ⇒ Integer
Point in time (Unix timestamp) when the link was created.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def date @date end |
#edit_date ⇒ Integer
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def edit_date @edit_date end |
#expire_date ⇒ Integer
Point in time (Unix timestamp) when the link will expire; 0 if never.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def expire_date @expire_date end |
#invite_link ⇒ TD::Types::String
Chat invite link.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def invite_link @invite_link end |
#is_primary ⇒ Boolean
True, if the link is primary. Primary invite link can’t have expire date or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def is_primary @is_primary end |
#is_revoked ⇒ Boolean
True, if the link was revoked.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def is_revoked @is_revoked end |
#member_count ⇒ Integer
Number of chat members, which joined the chat using the link.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def member_count @member_count end |
#member_limit ⇒ Integer
The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.
16 17 18 |
# File 'lib/tdlib/types/chat_invite_link.rb', line 16 def member_limit @member_limit end |