Class: TD::Types::Supergroup
- Defined in:
- lib/tdlib/types/supergroup.rb
Overview
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.
Instance Attribute Summary collapse
-
#date ⇒ Integer
Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.
-
#id ⇒ Integer
Supergroup or channel identifier.
-
#is_channel ⇒ Boolean
True, if the supergroup is a channel.
-
#is_scam ⇒ Boolean
True, if many users reported this supergroup as a scam.
-
#is_verified ⇒ Boolean
True, if the supergroup or channel is verified.
-
#member_count ⇒ Integer
Member count; 0 if unknown.
-
#restriction_reason ⇒ String
If non-empty, contains the reason why access to this supergroup or channel must be restricted.
-
#sign_messages ⇒ Boolean
True, if messages sent to the channel should contain information about the sender.
-
#status ⇒ TD::Types::ChatMemberStatus
Status of the current user in the supergroup or channel.
-
#username ⇒ String?
Username of the supergroup or channel; empty for private supergroups or channels.
Method Summary
Methods inherited from Base
Instance Attribute Details
#date ⇒ Integer
Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def date @date end |
#id ⇒ Integer
Supergroup or channel identifier.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def id @id end |
#is_channel ⇒ Boolean
True, if the supergroup is a channel.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def is_channel @is_channel end |
#is_scam ⇒ Boolean
True, if many users reported this supergroup as a scam.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def is_scam @is_scam end |
#is_verified ⇒ Boolean
True, if the supergroup or channel is verified.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def is_verified @is_verified end |
#member_count ⇒ Integer
Member count; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was found through SearchPublicChats.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def member_count @member_count end |
#restriction_reason ⇒ String
If non-empty, contains the reason why access to this supergroup or channel must be restricted. Format of the string is "type: description". type Contains the type of the restriction and at least one of the suffixes "-all", "-ios", "-android", or "-wp", which describe the platforms on which access should be restricted. (For example, "terms-ios-android". description contains a human-readable description of the restriction, which can be shown to the user).
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def restriction_reason @restriction_reason end |
#sign_messages ⇒ Boolean
True, if messages sent to the channel should contain information about the sender. This field is only applicable to channels.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def end |
#status ⇒ TD::Types::ChatMemberStatus
Status of the current user in the supergroup or channel.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def status @status end |
#username ⇒ String?
Username of the supergroup or channel; empty for private supergroups or channels.
27 28 29 |
# File 'lib/tdlib/types/supergroup.rb', line 27 def username @username end |