ChatFullInfo class abstract

This object represents a chat with full information.

Available extensions
Annotations
  • @freezed

Constructors

ChatFullInfo({@JsonKey.new(name: 'id') required int id, @JsonKey.new(name: 'type') required ChatType type, @JsonKey.new(name: 'title') String? title, @JsonKey.new(name: 'username') String? username, @JsonKey.new(name: 'first_name') String? firstName, @JsonKey.new(name: 'last_name') String? lastName, @JsonKey.new(name: 'is_forum') bool? isForum, @JsonKey.new(name: 'photo') ChatPhoto? photo, @JsonKey.new(name: 'active_usernames') List<String>? activeUsernames, @JsonKey.new(name: 'bio') String? bio, @JsonKey.new(name: 'has_private_forwards') bool? hasPrivateForwards, @JsonKey.new(name: 'has_restricted_voice_and_video_messages') bool? hasRestrictedVoiceAndVideoMessages, @JsonKey.new(name: 'join_to_send_messages') bool? joinToSendMessages, @JsonKey.new(name: 'join_by_request') bool? joinByRequest, @JsonKey.new(name: 'description') String? description, @JsonKey.new(name: 'invite_link') String? inviteLink, @JsonKey.new(name: 'pinned_message') Message? pinnedMessage, @JsonKey.new(name: 'permissions') ChatPermissions? permissions, @JsonKey.new(name: 'slow_mode_delay') int? slowModeDelay, @JsonKey.new(name: 'message_auto_delete_time') int? messageAutoDeleteTime, @JsonKey.new(name: 'has_protected_content') bool? hasProtectedContent, @JsonKey.new(name: 'sticker_set_name') String? stickerSetName, @JsonKey.new(name: 'can_set_sticker_set') bool? canSetStickerSet, @JsonKey.new(name: 'linked_chat_id') int? linkedChatId, @JsonKey.new(name: 'location') ChatLocation? location, @JsonKey.new(name: 'has_hidden_members') bool? hasHiddenMembers, @JsonKey.new(name: 'has_aggressive_anti_spam_enabled') bool? hasAggressiveAntiSpamEnabled, @JsonKey.new(name: 'emoji_status_expiration_date') int? emojiStatusExpirationDate, @JsonKey.new(name: 'available_reactions') List<ReactionType>? availableReactions, @JsonKey.new(name: 'emoji_status_custom_emoji_id') String? emojiStatusCustomEmojiId, @JsonKey.new(name: 'accent_color_id') int? accentColorId, @JsonKey.new(name: 'background_custom_emoji_id') String? backgroundCustomEmojiId, @JsonKey.new(name: 'profile_accent_color_id') int? profileAccentColorId, @JsonKey.new(name: 'profile_background_custom_emoji_id') String? profileBackgroundCustomEmojiId, @JsonKey.new(name: 'has_visible_history') bool? hasVisibleHistory, @JsonKey.new(name: 'unrestrict_boost_count') int? unrestrictBoostCount, @JsonKey.new(name: 'custom_emoji_sticker_set_name') String? customEmojiStickerSetName, @JsonKey.new(name: 'business_intro') BusinessIntro? businessIntro, @JsonKey.new(name: 'business_location') BusinessLocation? businessLocation, @JsonKey.new(name: 'business_opening_hours') BusinessOpeningHours? businessOpeningHours, @JsonKey.new(name: 'personal_chat') Chat? personalChat, @JsonKey.new(name: 'birthdate') Birthdate? birthdate, @JsonKey.new(name: 'max_reaction_count') @Default.new(0) int maxReactionCount, @JsonKey.new(name: 'can_send_paid_media') bool? canSendPaidMedia, @JsonKey.new(name: 'accepted_gift_types') required AcceptedGiftTypes acceptedGiftTypes, @JsonKey.new(name: 'is_direct_messages') bool? isDirectMessages, @JsonKey.new(name: 'parent_chat') Chat? parentChat, @JsonKey.new(name: 'rating') UserRating? rating, @JsonKey.new(name: 'paid_message_star_count') int? paidMessageStarCount, @JsonKey.new(name: 'unique_gift_colors') UniqueGiftColors? uniqueGiftColors, @JsonKey.new(name: 'first_profile_audio') Audio? firstProfileAudio, @JsonKey.new(name: 'guard_bot') User? guardBot})
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
firstProfileAudio → Audio?
Optional. For private chats, the first audio added to the profile of the user
no setterinherited
guardBot → User?
Optional. The bot that processes join request queries in the chat. The field is only available to chat administrators.
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
isDirectMessages → bool?
Optional. True, if the chat is the direct messages chat of a channel
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
paidMessageStarCount → int?
Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
no setterinherited
parentChat → Chat?
Optional. Information about the corresponding channel chat; for direct messages chats only
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
rating → UserRating?
Optional. For private chats, the rating of the user if any
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
uniqueGiftColors → UniqueGiftColors?
Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
no setterinherited
unrestrictBoostCount → int?
Optional. Minimum boost count to ignore restrictions.
no setterinherited
username → String?
Optional. Username of the chat.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ChatFullInfo value)) → TResult

Available on ChatFullInfo, provided by the ChatFullInfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ChatFullInfo value)?) → TResult?

Available on ChatFullInfo, provided by the ChatFullInfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ChatFullInfo value)?, {required TResult orElse()}) → TResult

Available on ChatFullInfo, provided by the ChatFullInfoPatterns extension

A variant of map that fallback to returning orElse.
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