UserFullInfo class final

Contains full information about a user

Inheritance

Constructors

UserFullInfo({ChatPhoto? personalPhoto, ChatPhoto? photo, ChatPhoto? publicPhoto, required int communityId, BlockList? blockList, required bool canBeCalled, required bool supportsVideoCalls, required bool hasPrivateCalls, required bool hasPrivateForwards, required bool hasRestrictedVoiceAndVideoNoteMessages, required bool hasPostedToProfileStories, required bool hasSponsoredMessagesEnabled, required bool needPhoneNumberPrivacyException, required bool setChatBackground, required bool usesUnofficialApp, FormattedText? bio, Birthdate? birthdate, required int personalChatId, required int giftCount, required int groupInCommonCount, required int incomingPaidMessageStarCount, required int outgoingPaidMessageStarCount, required GiftSettings giftSettings, BotVerification? botVerification, ProfileTab? mainProfileTab, Audio? firstProfileAudio, UserRating? rating, UserRating? pendingRating, required int pendingRatingDate, FormattedText? note, TonWalletCard? tonWalletCard, ProfileShareTheme? shareTheme, BusinessInfo? businessInfo, BotInfo? botInfo, dynamic extra, int? clientId})
Contains full information about a user
const
UserFullInfo.fromJson(Map<String, dynamic> json)
Parses a UserFullInfo from TDLib JSON.
factory

Properties

bio → FormattedText?
A short user bio; may be null for bots
final
birthdate → Birthdate?
Birthdate of the user; may be null if unknown
final
blockList → BlockList?
Block list to which the user is added; may be null if none
final
botInfo → BotInfo?
For bots, information about the bot; may be null if the user isn't a bot
final
botVerification → BotVerification?
Information about verification status of the user provided by a bot; may be null if none or unknown
final
businessInfo → BusinessInfo?
Information about business settings for Telegram Business accounts; may be null if none
final
canBeCalled → bool
True, if the user can be called
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
communityId → int
Identifier of the community to which chat with the bot was added; for bots only
final
extra → dynamic
"@extra" of the request this object answers.
final
firstProfileAudio → Audio?
The first audio file added to the user's profile; may be null if none
final
giftCount → int
Number of saved to profile gifts for other users or the total number of received gifts for the current user
final
giftSettings → GiftSettings
Settings for gift receiving for the user
final
groupInCommonCount → int
Number of group chats where both the other user and the current user are a member; 0 for the current user
final
hashCode → int
The hash code for this object.
no setterinherited
hasPostedToProfileStories → bool
True, if the user has posted to profile stories
final
hasPrivateCalls → bool
True, if the user can't be called due to their privacy settings
final
hasPrivateForwards → bool
True, if the user can't be linked in forwarded messages due to their privacy settings
final
hasRestrictedVoiceAndVideoNoteMessages → bool
True, if voice and video notes can't be sent or forwarded to the user
final
hasSponsoredMessagesEnabled → bool
True, if the user always enabled sponsored messages; known only for the current user
final
incomingPaidMessageStarCount → int
Number of Telegram Stars that must be paid by the user for each sent message to the current user
final
mainProfileTab → ProfileTab?
The main tab chosen by the user; may be null if not chosen manually
final
needPhoneNumberPrivacyException → bool
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used
final
note → FormattedText?
Note added to the user's contact; may be null if none
final
outgoingPaidMessageStarCount → int
Number of Telegram Stars that must be paid by the current user for each sent message to the user
final
pendingRating → UserRating?
The rating of the user after the next change; may be null if the user isn't the current user or there are no pending rating changes
final
pendingRatingDate → int
Unix timestamp when rating of the user will change to pending_rating; 0 if the user isn't the current user or there are no pending rating changes
final
personalChatId → int
Identifier of the personal chat of the user; 0 if none
final
personalPhoto → ChatPhoto?
User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos
final
photo → ChatPhoto?
User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo
final
publicPhoto → ChatPhoto?
User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos
final
rating → UserRating?
The current rating of the user; may be null if none
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setChatBackground → bool
True, if the user set chat background for both chat users and it wasn't reverted yet
final
shareTheme → ProfileShareTheme?
Theme of the screen for sharing a link to the user; may be null if the default theme is used
final
supportsVideoCalls → bool
True, if a video call can be created with the user
final
tonWalletCard → TonWalletCard?
TON wallet card of the user; may be null if none
final
usesUnofficialApp → bool
True, if the user uses an unofficial application that poses a security risk
final

Methods

copyWith({ChatPhoto? personalPhoto()?, ChatPhoto? photo()?, ChatPhoto? publicPhoto()?, int? communityId, BlockList? blockList()?, bool? canBeCalled, bool? supportsVideoCalls, bool? hasPrivateCalls, bool? hasPrivateForwards, bool? hasRestrictedVoiceAndVideoNoteMessages, bool? hasPostedToProfileStories, bool? hasSponsoredMessagesEnabled, bool? needPhoneNumberPrivacyException, bool? setChatBackground, bool? usesUnofficialApp, FormattedText? bio()?, Birthdate? birthdate()?, int? personalChatId, int? giftCount, int? groupInCommonCount, int? incomingPaidMessageStarCount, int? outgoingPaidMessageStarCount, GiftSettings? giftSettings, BotVerification? botVerification()?, ProfileTab? mainProfileTab()?, Audio? firstProfileAudio()?, UserRating? rating()?, UserRating? pendingRating()?, int? pendingRatingDate, FormattedText? note()?, TonWalletCard? tonWalletCard()?, ProfileShareTheme? shareTheme()?, BusinessInfo? businessInfo()?, BotInfo? botInfo()?, dynamic extra, int? clientId}) → UserFullInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.