SupergroupFullInfo class final
Contains full information about a supergroup or channel
Constructors
-
SupergroupFullInfo({ChatPhoto? photo, required int communityId, required String description, required int memberCount, required int administratorCount, required int restrictedCount, required int bannedCount, required int linkedChatId, required int directMessagesChatId, required int slowModeDelay, required double slowModeDelayExpiresIn, required bool canEnablePaidMessages, required bool canEnablePaidReaction, required bool canGetMembers, required bool hasHiddenMembers, required bool canHideMembers, required bool canSetStickerSet, required bool canSetLocation, required bool canGetStatistics, required bool canGetRevenueStatistics, required bool canGetStarRevenueStatistics, required bool canSendGift, required bool canToggleAggressiveAntiSpam, required bool isAllHistoryAvailable, required bool canHaveSponsoredMessages, required bool hasAggressiveAntiSpamEnabled, required bool hasPaidMediaAllowed, required bool hasPinnedStories, required int giftCount, required int myBoostCount, required int unrestrictBoostCount, required int outgoingPaidMessageStarCount, required int stickerSetId, required int customEmojiStickerSetId, ChatLocation? location, ChatInviteLink? inviteLink, required int guardBotUserId, required List<
BotCommands> botCommands, BotVerification? botVerification, ProfileTab? mainProfileTab, required int upgradedFromBasicGroupId, required int upgradedFromMaxMessageId, dynamic extra, int? clientId}) -
Contains full information about a supergroup or channel
const
-
SupergroupFullInfo.fromJson(Map<
String, dynamic> json) -
Parses a SupergroupFullInfo from TDLib JSON.
factory
Properties
- administratorCount → int
-
Number of privileged users in the supergroup or channel; 0 if unknown
final
- bannedCount → int
-
Number of users banned from chat; 0 if unknown
final
-
botCommands
→ List<
BotCommands> -
List of commands of bots in the group
final
- botVerification → BotVerification?
-
Information about verification status of the supergroup or the channel provided by a bot; may be null if none or unknown
final
- canEnablePaidMessages → bool
-
True, if paid messages can be enabled in the supergroup chat; for supergroup only
final
- canEnablePaidReaction → bool
-
True, if paid reaction can be enabled in the channel chat; for channels only
final
- canGetMembers → bool
-
True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers
final
- canGetRevenueStatistics → bool
-
True, if the supergroup or channel revenue statistics are available
final
- canGetStarRevenueStatistics → bool
-
True, if the supergroup or channel Telegram Star revenue statistics are available
final
- canGetStatistics → bool
-
True, if the supergroup or channel statistics are available
final
- canHaveSponsoredMessages → bool
-
True, if the chat can have sponsored messages. The value of this field is only available to the owner of the chat
final
- canHideMembers → bool
-
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators
final
- canSendGift → bool
-
True, if the user can send a gift to the supergroup or channel using sendGift or transferGift
final
- canSetLocation → bool
-
True, if the supergroup location can be changed
final
- canSetStickerSet → bool
-
True, if the supergroup sticker set can be changed
final
- canToggleAggressiveAntiSpam → bool
-
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- communityId → int
-
Identifier of the community to which the corresponding chat was added
final
- customEmojiStickerSetId → int
-
Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
final
- description → String
-
Supergroup or channel description
final
- directMessagesChatId → int
-
Chat identifier of a direct messages group for the channel, or a channel, for which the supergroup is the designated direct messages group; 0 if none
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- giftCount → int
-
Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number of received gifts
final
- guardBotUserId → int
-
User identifier of the guard bot in the group; for chat administrators only
final
- hasAggressiveAntiSpamEnabled → bool
-
True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasHiddenMembers → bool
-
True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers
final
- hasPaidMediaAllowed → bool
-
True, if paid media can be sent and forwarded to the channel chat; for channels only
final
- hasPinnedStories → bool
-
True, if the supergroup or channel has pinned stories
final
- inviteLink → ChatInviteLink?
-
Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only
final
- isAllHistoryAvailable → bool
-
True, if new chat members will have access to old messages. In public, discussion, or forum groups and all channels, old messages are always available, so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators
final
- linkedChatId → int
-
Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown
final
- location → ChatLocation?
-
Location to which the supergroup is connected; may be null if none
final
- mainProfileTab → ProfileTab?
-
The main tab chosen by the administrators of the channel; may be null if not chosen manually
final
- memberCount → int
-
Number of members in the supergroup or channel; 0 if unknown
final
- myBoostCount → int
-
Number of times the current user boosted the supergroup or channel
final
- outgoingPaidMessageStarCount → int
-
Number of Telegram Stars that must be paid by the current user for each sent message to the supergroup
final
- photo → ChatPhoto?
-
Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo
final
- restrictedCount → int
-
Number of restricted users in the supergroup; 0 if unknown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Theme of the screen for sharing a link to the supergroup or the channel; may be null if the default theme is used
final
- slowModeDelay → int
-
Delay between consecutive sent messages for non-administrator supergroup members, in seconds
final
- slowModeDelayExpiresIn → double
-
Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero
final
- stickerSetId → int
-
Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
final
- unrestrictBoostCount → int
-
Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
final
- upgradedFromBasicGroupId → int
-
Identifier of the basic group from which supergroup was upgraded; 0 if none
final
- upgradedFromMaxMessageId → int
-
Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none
final
Methods
-
copyWith(
{ChatPhoto? photo()?, int? communityId, String? description, int? memberCount, int? administratorCount, int? restrictedCount, int? bannedCount, int? linkedChatId, int? directMessagesChatId, int? slowModeDelay, double? slowModeDelayExpiresIn, bool? canEnablePaidMessages, bool? canEnablePaidReaction, bool? canGetMembers, bool? hasHiddenMembers, bool? canHideMembers, bool? canSetStickerSet, bool? canSetLocation, bool? canGetStatistics, bool? canGetRevenueStatistics, bool? canGetStarRevenueStatistics, bool? canSendGift, bool? canToggleAggressiveAntiSpam, bool? isAllHistoryAvailable, bool? canHaveSponsoredMessages, bool? hasAggressiveAntiSpamEnabled, bool? hasPaidMediaAllowed, bool? hasPinnedStories, int? giftCount, int? myBoostCount, int? unrestrictBoostCount, int? outgoingPaidMessageStarCount, int? stickerSetId, int? customEmojiStickerSetId, ChatLocation? location()?, ChatInviteLink? inviteLink()?, int? guardBotUserId, List< BotCommands> ? botCommands, BotVerification? botVerification()?, ProfileTab? mainProfileTab()?, int? upgradedFromBasicGroupId, int? upgradedFromMaxMessageId, dynamic extra, int? clientId}) → SupergroupFullInfo -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.