ChatFullInfo class
This object represents a chat.
Constructors
-
ChatFullInfo({required int id, required ChatType type, String? title, String? username, String? firstName, String? lastName, bool? isForum, ChatPhoto? photo, List<
String> ? activeUsernames, String? bio, bool? hasPrivateForwards, bool? hasRestrictedVoiceAndVideoMessages, bool? joinToSendMessages, bool? joinByRequest, String? description, String? inviteLink, Message? pinnedMessage, ChatPermissions? permissions, int? slowModeDelay, int? messageAutoDeleteTime, bool? hasProtectedContent, String? stickerSetName, bool? canSetStickerSet, int? linkedChatId, ChatLocation? location, bool? hasHiddenMembers, bool? hasAggressiveAntiSpamEnabled, int? emojiStatusExpirationDate, List<ReactionType> ? availableReactions, String? emojiStatusCustomEmojiId, int? accentColorId, String? backgroundCustomEmojiId, int? profileAccentColorId, String? profileBackgroundCustomEmojiId, bool? hasVisibleHistory, int? unrestrictBoostCount, String? customEmojiStickerSetName, BusinessIntro? businessIntro, BusinessLocation? businessLocation, BusinessOpeningHours? businessOpeningHours, Chat? personalChat, Birthdate? birthdate, int maxReactionCount = 0, bool? canSendPaidMedia}) -
Constructs a Chat object.
const
-
ChatFullInfo.fromJson(Map<
String, dynamic> json) -
Creates a Chat object from json.
factory
Properties
- accentColorId → int?
-
Optional. Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details. Always returned in getChat
final
-
activeUsernames
→ List<
String> ? -
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
final
-
availableReactions
→ List<
ReactionType> ? -
Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any.
final
- backgroundCustomEmojiId → String?
-
Optional. Custom emoji identifier of emoji chosen by the chat for the reply header and link preview background.
final
- bio → String?
-
Optional. Bio of the other party in a private chat.
final
- birthdate → Birthdate?
-
Optional. For private chats, the date of birth of the user.
final
- businessIntro → BusinessIntro?
-
Optional. For private chats with business accounts, the intro of the business.
final
- businessLocation → BusinessLocation?
-
Optional. For private chats with business accounts, the location of the business.
final
- businessOpeningHours → BusinessOpeningHours?
-
Optional. For private chats with business accounts, the opening hours of the business.
final
- canSendPaidMedia → bool?
-
Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
final
- canSetStickerSet → bool?
-
Optional. True, if the bot can change the group sticker set.
final
- customEmojiStickerSetName → String?
-
Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
final
- description → String?
-
Optional. Description, for groups, supergroups and channel chats.
final
- emojiStatusCustomEmojiId → String?
-
Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat.
final
- emojiStatusExpirationDate → int?
-
Optional. Expiration date of the emoji status of the other party in a private chat, if any.
final
- firstName → String?
-
First name of the other party in a private chat.
finalinherited
- hasAggressiveAntiSpamEnabled → bool?
-
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasHiddenMembers → bool?
-
Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
final
- hasPrivateForwards → bool?
-
Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user.
final
- hasProtectedContent → bool?
-
Optional. True, if messages from the chat can't be forwarded to other chats.
final
- hasRestrictedVoiceAndVideoMessages → bool?
-
Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat.
final
- hasVisibleHistory → bool?
-
Optional. True, if new chat members will have access to old messages; available only to chat administrators.
final
- id → int
-
Unique identifier for this chat.
finalinherited
- inviteLink → String?
-
Optional. Primary invite link, for groups, supergroups and channel chats.
final
- isForum → bool?
-
True, if the supergroup chat is a forum (has topics enabled).
finalinherited
- joinByRequest → bool?
-
Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators.
final
- joinToSendMessages → bool?
-
Optional. True, if users need to join the supergroup before they can send messages.
final
- lastName → String?
-
Last name of the other party in a private chat.
finalinherited
- linkedChatId → int?
-
Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
final
- location → ChatLocation?
-
Optional. For supergroups, the location to which the supergroup is connected.
final
- maxReactionCount → int
-
The maximum number of reactions that can be set on a message in the chat
final
- messageAutoDeleteTime → int?
-
Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds.
final
- permissions → ChatPermissions?
-
Optional. Default chat member permissions, for groups and supergroups.
final
- personalChat → Chat?
-
Optional. For private chats, the personal channel of the user.
final
- photo → ChatPhoto?
-
Optional. Chat photo.
final
- pinnedMessage → Message?
-
Optional. The most recent pinned message (by sending date).
final
- profileAccentColorId → int?
-
Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.
final
- profileBackgroundCustomEmojiId → String?
-
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slowModeDelay → int?
-
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds.
final
- stickerSetName → String?
-
Optional. For supergroups, name of group sticker set.
final
- title → String?
-
Title, for supergroups, channels, and group chats.
finalinherited
- type → ChatType
-
Type of the chat, can be either "private", "group", "supergroup" or "channel".
finalinherited
- unrestrictBoostCount → int?
-
Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions.
final
- username → String?
-
Username, for private chats, supergroups, and channels if available.
finalinherited
Methods
-
getChannelId(
) → ID? -
Available on Chat, provided by the GetChatID extension
Gets the chat'sChannelID
from the username -
getId(
) → ChatID -
Available on Chat, provided by the GetChatID extension
Returns theChatID
of the chat. -
isTheSameChat(
ID chatId) → bool -
Available on Chat, provided by the GetChatID extension
Returns true if thechatId
passed matches the current chat's ID. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts a ChatFullInfo object to json.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited