MadelineProtoDocs/docs/API_docs/constructors/userFull.md
2024-05-01 14:53:46 +02:00

7.2 KiB

title description nav_exclude image
userFull Extended user info true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: userFull

Back to constructors index

Extended user info

Attributes:

Name Type Required Description
blocked Bool Optional Whether you have blocked this user
phone_calls_available Bool Optional Whether this user can make VoIP calls
phone_calls_private Bool Optional Whether this user's privacy settings allow you to call them
can_pin_message Bool Optional Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself
has_scheduled Bool Optional Whether scheduled messages are available
video_calls_available Bool Optional Whether the user can receive video calls
voice_messages_forbidden Bool Optional Whether this user doesn't allow sending voice messages in a private chat with them
translations_disabled Bool Optional Whether the real-time chat translation popup should be hidden.
stories_pinned_available Bool Optional Whether this user has some pinned stories.
blocked_my_stories_from Bool Optional Whether we've blocked this user, preventing them from seeing our stories ».
wallpaper_overridden Bool Optional Whether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag, see here » for more info.
contact_require_premium Bool Optional
read_dates_private Bool Optional
sponsored_enabled Bool Optional
id long Yes User ID
about string Optional Bio of the user
settings PeerSettings Yes Peer settings
personal_photo Photo Optional Personal profile photo, to be shown instead of profile_photo.
profile_photo Photo Optional Profile photo
fallback_photo Photo Optional Fallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings.
notify_settings PeerNotifySettings Yes Notification settings
bot_info BotInfo Optional For bots, info about the bot (bot commands, etc)
pinned_msg_id int Optional Message ID of the last pinned message
common_chats_count int Yes Chats in common with this user
folder_id int Optional Peer folder ID, for more info click here
ttl_period int Optional Time To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.
theme_emoticon string Optional Emoji associated with chat theme
private_forward_name string Optional Anonymized text to be shown instead of the user's name on forwarded messages
bot_group_admin_rights ChatAdminRights Optional A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them ».
bot_broadcast_admin_rights ChatAdminRights Optional A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a channel, see here for more info on how to handle them ».
premium_gifts Array of PremiumGiftOption Optional Telegram Premium subscriptions gift options
wallpaper WallPaper Optional Wallpaper to use in the private chat with the user.
stories PeerStories Optional Active stories »
business_work_hours BusinessWorkHours Optional
business_location BusinessLocation Optional
business_greeting_message BusinessGreetingMessage Optional
business_away_message BusinessAwayMessage Optional
business_intro BusinessIntro Optional
birthday Birthday Optional
personal_channel_id long Optional
personal_channel_message int Optional

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, 'voice_messages_forbidden' => Bool, 'translations_disabled' => Bool, 'stories_pinned_available' => Bool, 'blocked_my_stories_from' => Bool, 'wallpaper_overridden' => Bool, 'contact_require_premium' => Bool, 'read_dates_private' => Bool, 'sponsored_enabled' => Bool, 'id' => long, 'about' => 'string', 'settings' => PeerSettings, 'personal_photo' => Photo, 'profile_photo' => Photo, 'fallback_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, 'premium_gifts' => [PremiumGiftOption, PremiumGiftOption], 'wallpaper' => WallPaper, 'stories' => PeerStories, 'business_work_hours' => BusinessWorkHours, 'business_location' => BusinessLocation, 'business_greeting_message' => BusinessGreetingMessage, 'business_away_message' => BusinessAwayMessage, 'business_intro' => BusinessIntro, 'birthday' => Birthday, 'personal_channel_id' => long, 'personal_channel_message' => int];