UserFullInfo class final

Contains full information about a user

Inheritance

Constructors

UserFullInfo({ChatPhoto? personalPhoto, ChatPhoto? photo, ChatPhoto? publicPhoto, BlockList? blockList, required bool canBeCalled, required bool supportsVideoCalls, required bool hasPrivateCalls, required bool hasPrivateForwards, required bool hasRestrictedVoiceAndVideoNoteMessages, required bool hasPinnedStories, required bool needPhoneNumberPrivacyException, required bool setChatBackground, FormattedText? bio, required List<PremiumPaymentOption> premiumGiftOptions, required int groupInCommonCount, 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
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
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
extra → dynamic
"@extra" of the request this object answers.
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
hasPinnedStories → bool
True, if the user has pinned 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
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
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
premiumGiftOptions → List<PremiumPaymentOption>
The list of available options for gifting Telegram Premium to the user
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
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
supportsVideoCalls → bool
True, if a video call can be created with the user
final

Methods

copyWith({ChatPhoto? personalPhoto()?, ChatPhoto? photo()?, ChatPhoto? publicPhoto()?, BlockList? blockList()?, bool? canBeCalled, bool? supportsVideoCalls, bool? hasPrivateCalls, bool? hasPrivateForwards, bool? hasRestrictedVoiceAndVideoNoteMessages, bool? hasPinnedStories, bool? needPhoneNumberPrivacyException, bool? setChatBackground, FormattedText? bio()?, List<PremiumPaymentOption>? premiumGiftOptions, int? groupInCommonCount, 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.