Link Search Menu Expand Document

Constructor: userFull

Back to constructors index

Extended user info

Attributes:

NameTypeRequiredDescription
blockedBoolOptionalWhether you have blocked this user
phone_calls_availableBoolOptionalWhether this user can make VoIP calls
phone_calls_privateBoolOptionalWhether this user’s privacy settings allow you to call them
can_pin_messageBoolOptionalWhether you can pin messages in the chat with this user, you can do this only for a chat with yourself
has_scheduledBoolOptionalWhether scheduled messages are available
video_calls_availableBoolOptionalWhether the user can receive video calls
idlongYesUser ID
aboutstringOptionalBio of the user
settingsPeerSettingsYesPeer settings
profile_photoPhotoOptionalProfile photo
notify_settingsPeerNotifySettingsYesNotification settings
bot_infoBotInfoOptionalFor bots, info about the bot (bot commands, etc)
pinned_msg_idintOptionalMessage ID of the last pinned message
common_chats_countintYesChats in common with this user
folder_idintOptionalPeer folder ID, for more info click here
ttl_periodintOptionalTime To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.
theme_emoticonstringOptionalEmoji associated with chat theme
private_forward_namestringOptionalAnonymized text to be shown instead of the the user’s name on forwarded messages
bot_group_admin_rightsChatAdminRightsOptional
bot_broadcast_admin_rightsChatAdminRightsOptional

Type: UserFull

Example:

$userFull = ['_' => 'userFull', 'blocked' => Bool, 'phone_calls_available' => Bool, 'phone_calls_private' => Bool, 'can_pin_message' => Bool, 'has_scheduled' => Bool, 'video_calls_available' => Bool, 'id' => long, 'about' => 'string', 'settings' => PeerSettings, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, 'pinned_msg_id' => int, 'common_chats_count' => int, 'folder_id' => int, 'ttl_period' => int, 'theme_emoticon' => 'string', 'private_forward_name' => 'string', 'bot_group_admin_rights' => ChatAdminRights, 'bot_broadcast_admin_rights' => ChatAdminRights];