ChatFullInfo class abstract

This object represents a chat with full information.

Annotations
  • @freezed

Constructors

ChatFullInfo.new({@JsonKey(name: 'id') required int id, @JsonKey(name: 'type') required ChatType type, @JsonKey(name: 'title') String? title, @JsonKey(name: 'username') String? username, @JsonKey(name: 'first_name') String? firstName, @JsonKey(name: 'last_name') String? lastName, @JsonKey(name: 'is_forum') bool? isForum, @JsonKey(name: 'photo') ChatPhoto? photo, @JsonKey(name: 'active_usernames') List<String>? activeUsernames, @JsonKey(name: 'bio') String? bio, @JsonKey(name: 'has_private_forwards') bool? hasPrivateForwards, @JsonKey(name: 'has_restricted_voice_and_video_messages') bool? hasRestrictedVoiceAndVideoMessages, @JsonKey(name: 'join_to_send_messages') bool? joinToSendMessages, @JsonKey(name: 'join_by_request') bool? joinByRequest, @JsonKey(name: 'description') String? description, @JsonKey(name: 'invite_link') String? inviteLink, @JsonKey(name: 'pinned_message') Message? pinnedMessage, @JsonKey(name: 'permissions') ChatPermissions? permissions, @JsonKey(name: 'slow_mode_delay') int? slowModeDelay, @JsonKey(name: 'message_auto_delete_time') int? messageAutoDeleteTime, @JsonKey(name: 'has_protected_content') bool? hasProtectedContent, @JsonKey(name: 'sticker_set_name') String? stickerSetName, @JsonKey(name: 'can_set_sticker_set') bool? canSetStickerSet, @JsonKey(name: 'linked_chat_id') int? linkedChatId, @JsonKey(name: 'location') ChatLocation? location, @JsonKey(name: 'has_hidden_members') bool? hasHiddenMembers, @JsonKey(name: 'has_aggressive_anti_spam_enabled') bool? hasAggressiveAntiSpamEnabled, @JsonKey(name: 'emoji_status_expiration_date') int? emojiStatusExpirationDate, @JsonKey(name: 'available_reactions') List<ReactionType>? availableReactions, @JsonKey(name: 'emoji_status_custom_emoji_id') String? emojiStatusCustomEmojiId, @JsonKey(name: 'accent_color_id') int? accentColorId, @JsonKey(name: 'background_custom_emoji_id') String? backgroundCustomEmojiId, @JsonKey(name: 'profile_accent_color_id') int? profileAccentColorId, @JsonKey(name: 'profile_background_custom_emoji_id') String? profileBackgroundCustomEmojiId, @JsonKey(name: 'has_visible_history') bool? hasVisibleHistory, @JsonKey(name: 'unrestrict_boost_count') int? unrestrictBoostCount, @JsonKey(name: 'custom_emoji_sticker_set_name') String? customEmojiStickerSetName, @JsonKey(name: 'business_intro') BusinessIntro? businessIntro, @JsonKey(name: 'business_location') BusinessLocation? businessLocation, @JsonKey(name: 'business_opening_hours') BusinessOpeningHours? businessOpeningHours, @JsonKey(name: 'personal_chat') Chat? personalChat, @JsonKey(name: 'birthdate') Birthdate? birthdate, @JsonKey(name: 'max_reaction_count') @Default(0) int maxReactionCount, @JsonKey(name: 'can_send_paid_media') bool? canSendPaidMedia, @JsonKey(name: 'accepted_gift_types') required AcceptedGiftTypes acceptedGiftTypes})
Constructs a ChatFullInfo object.
const
factory
ChatFullInfo.fromJson(Map<String, dynamic> json)
Creates a ChatFullInfo object from a JSON map.
factory

Properties

accentColorId int?
Optional. Identifier for accent color.
no setterinherited
acceptedGiftTypes AcceptedGiftTypes
Information about types of gifts that are accepted by the chat or by the corresponding user for private chats.
no setterinherited
activeUsernames List<String>?
Optional. If non-empty, the list of all active chat usernames.
no setterinherited
availableReactions List<ReactionType>?
Optional. Available reaction types.
no setterinherited
backgroundCustomEmojiId String?
Optional. Custom emoji identifier for background.
no setterinherited
bio String?
Optional. Bio of the other party in a private chat.
no setterinherited
birthdate Birthdate?
Optional. Date of birth for private chats.
no setterinherited
businessIntro BusinessIntro?
Optional. Business intro for business accounts.
no setterinherited
businessLocation BusinessLocation?
Optional. Business location for business accounts.
no setterinherited
businessOpeningHours BusinessOpeningHours?
Optional. Business opening hours.
no setterinherited
canSendPaidMedia bool?
Optional. True if paid media can be sent.
no setterinherited
canSetStickerSet bool?
Optional. True if the bot can change the group sticker set.
no setterinherited
copyWith → $ChatFullInfoCopyWith<ChatFullInfo>
Create a copy of ChatFullInfo with the given fields replaced by the non-null parameter values.
no setterinherited
customEmojiStickerSetName String?
Optional. Name of custom emoji sticker set.
no setterinherited
description String?
Optional. Description for groups, supergroups, and channels.
no setterinherited
emojiStatusCustomEmojiId String?
Optional. Custom emoji identifier for emoji status.
no setterinherited
emojiStatusExpirationDate int?
Optional. Expiration date of emoji status.
no setterinherited
firstName String?
Optional. First name in private chats.
no setterinherited
hasAggressiveAntiSpamEnabled bool?
Optional. True if aggressive anti-spam is enabled.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasHiddenMembers bool?
Optional. True if non-administrators can only see bots and admins.
no setterinherited
hasPrivateForwards bool?
Optional. True if privacy settings restrict forwarding.
no setterinherited
hasProtectedContent bool?
Optional. True if messages can't be forwarded.
no setterinherited
hasRestrictedVoiceAndVideoMessages bool?
Optional. True if voice and video note messages are restricted.
no setterinherited
hasVisibleHistory bool?
Optional. True if new members can see old messages.
no setterinherited
id int
Unique identifier for this chat.
no setterinherited
Optional. Primary invite link.
no setterinherited
isForum bool?
Optional. True if the chat is a forum.
no setterinherited
joinByRequest bool?
Optional. True if joining requires administrator approval.
no setterinherited
joinToSendMessages bool?
Optional. True if users need to join before sending messages.
no setterinherited
lastName String?
Optional. Last name in private chats.
no setterinherited
linkedChatId int?
Optional. Unique identifier for the linked chat.
no setterinherited
location ChatLocation?
Optional. Location for supergroups.
no setterinherited
maxReactionCount int
Maximum number of reactions allowed.
no setterinherited
messageAutoDeleteTime int?
Optional. Time after which messages are automatically deleted.
no setterinherited
permissions ChatPermissions?
Optional. Default chat member permissions.
no setterinherited
personalChat Chat?
Optional. Personal channel for private chats.
no setterinherited
photo ChatPhoto?
Optional. Chat photo.
no setterinherited
pinnedMessage Message?
Optional. The most recent pinned message.
no setterinherited
profileAccentColorId int?
Optional. Identifier for profile accent color.
no setterinherited
profileBackgroundCustomEmojiId String?
Optional. Custom emoji identifier for profile background.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slowModeDelay int?
Optional. Minimum delay between messages in supergroups.
no setterinherited
stickerSetName String?
Optional. Name of group sticker set.
no setterinherited
title String?
Optional. Title of the chat.
no setterinherited
type ChatType
Type of the chat.
no setterinherited
unrestrictBoostCount int?
Optional. Minimum boost count to ignore restrictions.
no setterinherited
username String?
Optional. Username of the chat.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ChatFullInfo to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited