MadelineProto/docs/TD_docs/constructors/index.md

66 KiB

title description
Constructors List of constructors

Constructors

Back to API documentation index




$accountTtl = ['days' => int, ];




$animation = ['width' => int, 'height' => int, 'file_name' => string, 'mime_type' => string, 'thumb' => photoSize, 'animation' => file, ];




$animations = ['animations' => [animation], ];




$apnsDeviceToken = ['token' => string, ];




$audio = ['duration' => int, 'title' => string, 'performer' => string, 'file_name' => string, 'mime_type' => string, 'album_cover_thumb' => photoSize, 'audio' => file, ];




$authCodeTypeCall = ['length' => int, ];




$authCodeTypeFlashCall = ['pattern' => string, ];




$authCodeTypeMessage = ['length' => int, ];




$authCodeTypeSms = ['length' => int, ];




$authStateLoggingOut = [];




$authStateOk = [];




$authStateWaitCode = ['is_registered' => Bool, 'code_type' => AuthCodeType, 'next_code_type' => AuthCodeType, 'timeout' => int, ];




$authStateWaitPassword = ['password_hint' => string, 'has_recovery_email' => Bool, 'recovery_email_pattern' => string, ];




$authStateWaitPhoneNumber = [];




$blackberryDeviceToken = ['token' => string, ];




$botCommand = ['command' => string, 'description' => string, ];




$botInfo = ['description' => string, 'commands' => [botCommand], ];




$callbackQueryAnswer = ['text' => string, 'show_alert' => Bool, 'url' => string, ];




$callbackQueryData = ['data' => bytes, ];




$callbackQueryGame = ['game_short_name' => string, ];




$channel = ['id' => int, 'username' => string, 'date' => int, 'status' => ChatMemberStatus, 'anyone_can_invite' => Bool, 'sign_messages' => Bool, 'is_supergroup' => Bool, 'is_verified' => Bool, 'restriction_reason' => string, ];




$channelChatInfo = ['channel' => channel, ];




$channelFull = ['channel' => channel, 'about' => string, 'member_count' => int, 'administrator_count' => int, 'kicked_count' => int, 'can_get_members' => Bool, 'can_set_username' => Bool, 'invite_link' => string, 'pinned_message_id' => long, 'migrated_from_group_id' => int, 'migrated_from_max_message_id' => long, ];




$channelMembersAdministrators = [];




$channelMembersBots = [];




$channelMembersKicked = [];




$channelMembersRecent = [];




$channels = ['channel_ids' => [int], ];




$chat = ['id' => long, 'title' => string, 'photo' => chatPhoto, 'top_message' => message, 'order' => long, 'unread_count' => int, 'last_read_inbox_message_id' => long, 'last_read_outbox_message_id' => long, 'notification_settings' => notificationSettings, 'reply_markup_message_id' => long, 'draft_message' => draftMessage, 'type' => ChatInfo, ];




$chatInviteLink = ['invite_link' => string, ];




$chatInviteLinkInfo = ['chat_id' => long, 'title' => string, 'photo' => chatPhoto, 'member_count' => int, 'members' => [user], 'is_group' => Bool, 'is_channel' => Bool, 'is_public_channel' => Bool, 'is_supergroup_channel' => Bool, ];




$chatMember = ['user_id' => int, 'inviter_user_id' => int, 'join_date' => int, 'status' => ChatMemberStatus, 'bot_info' => botInfo, ];




$chatMemberStatusCreator = [];




$chatMemberStatusEditor = [];




$chatMemberStatusKicked = [];




$chatMemberStatusLeft = [];




$chatMemberStatusMember = [];




$chatMemberStatusModerator = [];




$chatMembers = ['total_count' => int, 'members' => [chatMember], ];




$chatPhoto = ['small' => file, 'big' => file, ];




$chatReportSpamState = ['can_report_spam' => Bool, ];




$chats = ['chats' => [chat], ];




$contact = ['phone_number' => string, 'first_name' => string, 'last_name' => string, 'user_id' => int, ];




$deviceTokenSet = ['tokens' => [DeviceToken], ];




$document = ['file_name' => string, 'mime_type' => string, 'thumb' => photoSize, 'document' => file, ];




$draftMessage = ['reply_to_message_id' => long, 'input_message_text' => InputMessageContent, ];




$error = ['code' => int, 'message' => string, ];




$file = ['id' => int, 'persistent_id' => string, 'size' => int, 'path' => string, ];




$game = ['id' => long, 'short_name' => string, 'title' => string, 'text' => string, 'text_entities' => [MessageEntity], 'description' => string, 'photo' => photo, 'animation' => animation, ];




$gameHighScore = ['position' => int, 'user_id' => int, 'score' => int, ];




$gameHighScores = ['scores' => [gameHighScore], ];




$gcmDeviceToken = ['token' => string, ];




$group = ['id' => int, 'member_count' => int, 'status' => ChatMemberStatus, 'anyone_can_edit' => Bool, 'is_active' => Bool, 'migrated_to_channel_id' => int, ];




$groupChatInfo = ['group' => group, ];




$groupFull = ['group' => group, 'creator_user_id' => int, 'members' => [chatMember], 'invite_link' => string, ];




$inlineKeyboardButton = ['text' => string, 'type' => InlineKeyboardButtonType, ];




$inlineKeyboardButtonTypeCallback = ['data' => bytes, ];




$inlineKeyboardButtonTypeCallbackGame = [];




$inlineKeyboardButtonTypeSwitchInline = ['query' => string, 'in_current_chat' => Bool, ];




$inlineKeyboardButtonTypeUrl = ['url' => string, ];




$inlineQueryResultAnimation = ['id' => string, 'animation' => animation, 'title' => string, ];




$inlineQueryResultArticle = ['id' => string, 'url' => string, 'hide_url' => Bool, 'title' => string, 'description' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, ];




$inlineQueryResultAudio = ['id' => string, 'audio' => audio, ];




$inlineQueryResultContact = ['id' => string, 'contact' => contact, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, ];




$inlineQueryResultDocument = ['id' => string, 'document' => document, 'title' => string, 'description' => string, ];




$inlineQueryResultGame = ['id' => string, 'game' => game, ];




$inlineQueryResultLocation = ['id' => string, 'location' => location, 'title' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, ];




$inlineQueryResultPhoto = ['id' => string, 'photo' => photo, 'title' => string, 'description' => string, ];




$inlineQueryResultSticker = ['id' => string, 'sticker' => sticker, ];




$inlineQueryResultVenue = ['id' => string, 'venue' => venue, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, ];




$inlineQueryResultVideo = ['id' => string, 'video' => video, 'title' => string, 'description' => string, ];




$inlineQueryResultVoice = ['id' => string, 'voice' => voice, 'title' => string, ];




$inlineQueryResults = ['inline_query_id' => long, 'next_offset' => string, 'results' => [InlineQueryResult], 'switch_pm_text' => string, 'switch_pm_parameter' => string, ];




$inputFileGenerated = ['original_path' => string, 'conversion' => string, 'expected_size' => int, 'should_cache' => Bool, ];




$inputFileId = ['id' => int, ];




$inputFileLocal = ['path' => string, ];




$inputFilePersistentId = ['persistent_id' => string, ];




$inputInlineQueryResultAnimatedGif = ['id' => string, 'title' => string, 'thumb_url' => string, 'gif_url' => string, 'gif_width' => int, 'gif_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultAnimatedMpeg4 = ['id' => string, 'title' => string, 'thumb_url' => string, 'mpeg4_url' => string, 'mpeg4_width' => int, 'mpeg4_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultArticle = ['id' => string, 'url' => string, 'hide_url' => Bool, 'title' => string, 'description' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultAudio = ['id' => string, 'title' => string, 'performer' => string, 'audio_url' => string, 'audio_duration' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultContact = ['id' => string, 'contact' => contact, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultDocument = ['id' => string, 'title' => string, 'description' => string, 'document_url' => string, 'mime_type' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultGame = ['id' => string, 'game_short_name' => string, 'reply_markup' => ReplyMarkup, ];




$inputInlineQueryResultLocation = ['id' => string, 'location' => location, 'title' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultPhoto = ['id' => string, 'title' => string, 'description' => string, 'thumb_url' => string, 'photo_url' => string, 'photo_width' => int, 'photo_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultSticker = ['id' => string, 'thumb_url' => string, 'sticker_url' => string, 'sticker_width' => int, 'sticker_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultVenue = ['id' => string, 'venue' => venue, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultVideo = ['id' => string, 'title' => string, 'description' => string, 'thumb_url' => string, 'video_url' => string, 'mime_type' => string, 'video_width' => int, 'video_height' => int, 'video_duration' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputInlineQueryResultVoice = ['id' => string, 'title' => string, 'voice_url' => string, 'voice_duration' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];




$inputMessageAnimation = ['animation' => InputFile, 'thumb' => InputThumb, 'width' => int, 'height' => int, 'caption' => string, ];




$inputMessageAudio = ['audio' => InputFile, 'album_cover_thumb' => InputThumb, 'duration' => int, 'title' => string, 'performer' => string, 'caption' => string, ];




$inputMessageContact = ['contact' => contact, ];




$inputMessageDocument = ['document' => InputFile, 'thumb' => InputThumb, 'caption' => string, ];




$inputMessageForwarded = ['from_chat_id' => long, 'message_id' => long, 'in_game_share' => Bool, ];




$inputMessageGame = ['bot_user_id' => int, 'game_short_name' => string, ];




$inputMessageLocation = ['location' => location, ];




$inputMessagePhoto = ['photo' => InputFile, 'thumb' => InputThumb, 'added_sticker_file_ids' => [int], 'width' => int, 'height' => int, 'caption' => string, ];




$inputMessageSticker = ['sticker' => InputFile, 'thumb' => InputThumb, 'width' => int, 'height' => int, ];




$inputMessageText = ['text' => string, 'disable_web_page_preview' => Bool, 'clear_draft' => Bool, 'entities' => [MessageEntity], 'parse_mode' => TextParseMode, ];




$inputMessageVenue = ['venue' => venue, ];




$inputMessageVideo = ['video' => InputFile, 'thumb' => InputThumb, 'added_sticker_file_ids' => [int], 'duration' => int, 'width' => int, 'height' => int, 'caption' => string, ];




$inputMessageVoice = ['voice' => InputFile, 'duration' => int, 'waveform' => bytes, 'caption' => string, ];




$inputThumbGenerated = ['original_path' => string, 'conversion' => string, 'width' => int, 'height' => int, ];




$inputThumbLocal = ['path' => string, 'width' => int, 'height' => int, ];




$keyboardButton = ['text' => string, 'type' => KeyboardButtonType, ];




$keyboardButtonTypeRequestLocation = [];




$keyboardButtonTypeRequestPhoneNumber = [];




$keyboardButtonTypeText = [];




$linkStateContact = [];




$linkStateKnowsPhoneNumber = [];




$linkStateNone = [];




$location = ['latitude' => double, 'longitude' => double, ];




$maskPosition = ['point' => int, 'x_shift' => double, 'y_shift' => double, 'zoom' => double, ];




$message = ['id' => long, 'sender_user_id' => int, 'chat_id' => long, 'send_state' => MessageSendState, 'can_be_edited' => Bool, 'can_be_deleted' => Bool, 'is_post' => Bool, 'date' => int, 'edit_date' => int, 'forward_info' => MessageForwardInfo, 'reply_to_message_id' => long, 'ttl' => int, 'ttl_expires_in' => double, 'via_bot_user_id' => int, 'views' => int, 'content' => MessageContent, 'reply_markup' => ReplyMarkup, ];




$messageAnimation = ['animation' => animation, 'caption' => string, ];




$messageAudio = ['audio' => audio, 'caption' => string, 'is_listened' => Bool, ];




$messageChannelChatCreate = ['title' => string, ];




$messageChatAddMembers = ['members' => [user], ];




$messageChatChangePhoto = ['photo' => photo, ];




$messageChatChangeTitle = ['title' => string, ];




$messageChatDeleteMember = ['user' => user, ];




$messageChatDeletePhoto = [];




$messageChatJoinByLink = [];




$messageChatMigrateFrom = ['title' => string, 'group_id' => int, ];




$messageChatMigrateTo = ['channel_id' => int, ];




$messageChatSetTtl = ['ttl' => int, ];




$messageContact = ['contact' => contact, ];




$messageDocument = ['document' => document, 'caption' => string, ];




$messageEntityBold = ['offset' => int, 'length' => int, ];




$messageEntityBotCommand = ['offset' => int, 'length' => int, ];




$messageEntityCode = ['offset' => int, 'length' => int, ];




$messageEntityEmail = ['offset' => int, 'length' => int, ];




$messageEntityHashtag = ['offset' => int, 'length' => int, ];




$messageEntityItalic = ['offset' => int, 'length' => int, ];




$messageEntityMention = ['offset' => int, 'length' => int, ];




$messageEntityMentionName = ['offset' => int, 'length' => int, 'user_id' => int, ];




$messageEntityPre = ['offset' => int, 'length' => int, ];




$messageEntityPreCode = ['offset' => int, 'length' => int, 'language' => string, ];




$messageEntityTextUrl = ['offset' => int, 'length' => int, 'url' => string, ];




$messageEntityUrl = ['offset' => int, 'length' => int, ];




$messageForwardedFromUser = ['sender_user_id' => int, 'date' => int, ];




$messageForwardedPost = ['chat_id' => long, 'sender_user_id' => int, 'date' => int, 'message_id' => long, ];




$messageGame = ['game' => game, ];




$messageGameScore = ['game_message_id' => long, 'game_id' => long, 'score' => int, ];




$messageGroupChatCreate = ['title' => string, 'members' => [user], ];




$messageIsBeingSent = [];




$messageIsFailedToSend = [];




$messageIsIncoming = [];




$messageIsSuccessfullySent = [];




$messageLocation = ['location' => location, ];




$messagePhoto = ['photo' => photo, 'caption' => string, ];




$messagePinMessage = ['message_id' => long, ];




$messageScreenshotTaken = [];




$messageSticker = ['sticker' => sticker, ];




$messageText = ['text' => string, 'entities' => [MessageEntity], 'web_page' => webPage, ];




$messageUnsupported = [];




$messageVenue = ['venue' => venue, ];




$messageVideo = ['video' => video, 'caption' => string, ];




$messageVoice = ['voice' => voice, 'caption' => string, 'is_listened' => Bool, ];




$messages = ['total_count' => int, 'messages' => [message], ];




$mpnsDeviceToken = ['token' => string, ];




$notificationSettings = ['mute_for' => int, 'sound' => string, 'show_preview' => Bool, ];




$notificationSettingsForAllChats = [];




$notificationSettingsForChat = ['chat_id' => long, ];




$notificationSettingsForGroupChats = [];




$notificationSettingsForPrivateChats = [];




$ok = [];




$optionBoolean = ['value' => Bool, ];




$optionEmpty = [];




$optionInteger = ['value' => int, ];




$optionString = ['value' => string, ];




$passwordRecoveryInfo = ['recovery_email_pattern' => string, ];




$passwordState = ['has_password' => Bool, 'password_hint' => string, 'has_recovery_email' => Bool, 'unconfirmed_recovery_email_pattern' => string, ];




$photo = ['id' => long, 'has_stickers' => Bool, 'sizes' => [photoSize], ];




$photoSize = ['type' => string, 'photo' => file, 'width' => int, 'height' => int, ];




$privacyKeyChatInvite = [];




$privacyKeyUserStatus = [];




$privacyRuleAllowAll = [];




$privacyRuleAllowContacts = [];




$privacyRuleAllowUsers = ['user_ids' => [int], ];




$privacyRuleDisallowAll = [];




$privacyRuleDisallowContacts = [];




$privacyRuleDisallowUsers = ['user_ids' => [int], ];




$privacyRules = ['rules' => [PrivacyRule], ];




$privateChatInfo = ['user' => user, ];




$profilePhoto = ['id' => long, 'small' => file, 'big' => file, ];




$recoveryEmail = ['recovery_email' => string, ];




$replyMarkupForceReply = ['personal' => Bool, ];




$replyMarkupInlineKeyboard = ['rows' => [inlineKeyboardButton>], ];




$replyMarkupRemoveKeyboard = ['personal' => Bool, ];




$replyMarkupShowKeyboard = ['rows' => [keyboardButton>], 'resize_keyboard' => Bool, 'one_time' => Bool, 'personal' => Bool, ];




$searchMessagesFilterAnimation = [];




$searchMessagesFilterAudio = [];




$searchMessagesFilterChatPhoto = [];




$searchMessagesFilterDocument = [];




$searchMessagesFilterEmpty = [];




$searchMessagesFilterPhoto = [];




$searchMessagesFilterPhotoAndVideo = [];




$searchMessagesFilterUrl = [];




$searchMessagesFilterVideo = [];




$searchMessagesFilterVoice = [];




$secretChat = ['id' => int, 'user_id' => int, 'state' => int, 'is_outbound' => Bool, 'ttl' => int, 'key_hash' => bytes, ];




$secretChatInfo = ['secret_chat' => secretChat, ];




$sendMessageCancelAction = [];




$sendMessageChooseContactAction = [];




$sendMessageGeoLocationAction = [];




$sendMessageRecordVideoAction = [];




$sendMessageRecordVoiceAction = [];




$sendMessageStartPlayGameAction = [];




$sendMessageTypingAction = [];




$sendMessageUploadDocumentAction = ['progress' => int, ];




$sendMessageUploadPhotoAction = ['progress' => int, ];




$sendMessageUploadVideoAction = ['progress' => int, ];




$sendMessageUploadVoiceAction = ['progress' => int, ];




$session = ['id' => long, 'is_current' => Bool, 'app_id' => int, 'app_name' => string, 'app_version' => string, 'is_official_app' => Bool, 'device_model' => string, 'platform' => string, 'system_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ];




$sessions = ['sessions' => [session], ];




$simplePushDeviceToken = ['token' => string, ];




$sticker = ['set_id' => long, 'width' => int, 'height' => int, 'emoji' => string, 'is_mask' => Bool, 'mask_position' => maskPosition, 'thumb' => photoSize, 'sticker' => file, ];




$stickerEmojis = ['emojis' => [string], ];




$stickerSet = ['id' => long, 'title' => string, 'name' => string, 'is_installed' => Bool, 'is_archived' => Bool, 'is_official' => Bool, 'is_masks' => Bool, 'is_viewed' => Bool, 'stickers' => [sticker], 'emojis' => [stickerEmojis], ];




$stickerSetInfo = ['id' => long, 'title' => string, 'name' => string, 'is_installed' => Bool, 'is_archived' => Bool, 'is_official' => Bool, 'is_masks' => Bool, 'is_viewed' => Bool, 'size' => int, 'covers' => [sticker], ];




$stickerSets = ['total_count' => int, 'sets' => [stickerSetInfo], ];




$stickers = ['stickers' => [sticker], ];




$test_bytes = ['value' => bytes, ];

$test_empty = [];

$test_int = ['value' => int, ];

$test_string = ['value' => string, ];

$test_vectorInt = ['value' => [int], ];

$test_vectorIntObject = ['value' => [test_Int], ];

$test_vectorString = ['value' => [string], ];

$test_vectorStringObject = ['value' => [test_String], ];




$textParseModeHTML = [];




$textParseModeMarkdown = [];




$ubuntuPhoneDeviceToken = ['token' => string, ];




$updateAuthState = ['auth_state' => AuthState, ];




$updateChannel = ['channel' => channel, ];




$updateChannelFull = ['channel_full' => channelFull, ];




$updateChat = ['chat' => chat, ];




$updateChatDraftMessage = ['chat_id' => long, 'draft_message' => draftMessage, ];




$updateChatOrder = ['chat_id' => long, 'order' => long, ];




$updateChatPhoto = ['chat_id' => long, 'photo' => chatPhoto, ];




$updateChatReadInbox = ['chat_id' => long, 'last_read_inbox_message_id' => long, 'unread_count' => int, ];




$updateChatReadOutbox = ['chat_id' => long, 'last_read_outbox_message_id' => long, ];




$updateChatReplyMarkup = ['chat_id' => long, 'reply_markup_message_id' => long, ];




$updateChatTitle = ['chat_id' => long, 'title' => string, ];




$updateChatTopMessage = ['chat_id' => long, 'top_message' => message, ];




$updateDeleteMessages = ['chat_id' => long, 'message_ids' => [long], ];




$updateFile = ['file' => file, ];




$updateFileGenerationFinish = ['file' => file, ];




$updateFileGenerationProgress = ['file_id' => int, 'size' => int, 'ready' => int, ];




$updateFileGenerationStart = ['generation_id' => long, 'original_path' => string, 'destination_path' => string, 'conversion' => string, ];




$updateFileProgress = ['file_id' => int, 'size' => int, 'ready' => int, ];




$updateGroup = ['group' => group, ];




$updateMessageContent = ['chat_id' => long, 'message_id' => long, 'new_content' => MessageContent, ];




$updateMessageEdited = ['chat_id' => long, 'message_id' => long, 'edit_date' => int, 'reply_markup' => ReplyMarkup, ];




$updateMessageSendFailed = ['chat_id' => long, 'message_id' => long, 'error_code' => int, 'error_message' => string, ];




$updateMessageSendSucceeded = ['message' => message, 'old_message_id' => long, ];




$updateMessageViews = ['chat_id' => long, 'message_id' => long, 'views' => int, ];




$updateNewCallbackQuery = ['id' => long, 'sender_user_id' => int, 'chat_id' => long, 'message_id' => long, 'chat_instance' => long, 'payload' => CallbackQueryPayload, ];




$updateNewChosenInlineResult = ['sender_user_id' => int, 'user_location' => location, 'query' => string, 'result_id' => string, 'inline_message_id' => string, ];




$updateNewInlineCallbackQuery = ['id' => long, 'sender_user_id' => int, 'inline_message_id' => string, 'chat_instance' => long, 'payload' => CallbackQueryPayload, ];




$updateNewInlineQuery = ['id' => long, 'sender_user_id' => int, 'user_location' => location, 'query' => string, 'offset' => string, ];




$updateNewMessage = ['message' => message, 'disable_notification' => Bool, ];




$updateNotificationSettings = ['scope' => NotificationSettingsScope, 'notification_settings' => notificationSettings, ];




$updateOption = ['name' => string, 'value' => OptionValue, ];




$updatePrivacy = ['key' => PrivacyKey, 'rules' => privacyRules, ];




$updateRecentStickers = ['is_attached' => Bool, 'sticker_ids' => [int], ];




$updateSavedAnimations = [];




$updateSecretChat = ['secret_chat' => secretChat, ];




$updateServiceNotification = ['type' => string, 'content' => MessageContent, ];




$updateStickerSets = ['is_masks' => Bool, 'sticker_set_ids' => [long], ];




$updateTrendingStickerSets = ['sticker_sets' => stickerSets, ];




$updateUser = ['user' => user, ];




$updateUserAction = ['chat_id' => long, 'user_id' => int, 'action' => SendMessageAction, ];




$updateUserBlocked = ['user_id' => int, 'is_blocked' => Bool, ];




$updateUserStatus = ['user_id' => int, 'status' => UserStatus, ];




$user = ['id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone_number' => string, 'status' => UserStatus, 'profile_photo' => profilePhoto, 'my_link' => LinkState, 'foreign_link' => LinkState, 'is_verified' => Bool, 'restriction_reason' => string, 'have_access' => Bool, 'type' => UserType, ];




$userFull = ['user' => user, 'is_blocked' => Bool, 'about' => string, 'common_chat_count' => int, 'bot_info' => botInfo, ];




$userProfilePhotos = ['total_count' => int, 'photos' => [photo], ];




$userStatusEmpty = [];




$userStatusLastMonth = [];




$userStatusLastWeek = [];




$userStatusOffline = ['was_online' => int, ];




$userStatusOnline = ['expires' => int, ];




$userStatusRecently = [];




$userTypeBot = ['can_join_group_chats' => Bool, 'can_read_all_group_chat_messages' => Bool, 'is_inline' => Bool, 'inline_query_placeholder' => string, 'need_location' => Bool, ];




$userTypeDeleted = [];




$userTypeGeneral = [];




$userTypeUnknown = [];




$users = ['total_count' => int, 'users' => [user], ];




$venue = ['location' => location, 'title' => string, 'address' => string, 'provider' => string, 'id' => string, ];




$video = ['duration' => int, 'width' => int, 'height' => int, 'file_name' => string, 'mime_type' => string, 'has_stickers' => Bool, 'thumb' => photoSize, 'video' => file, ];




$voice = ['duration' => int, 'waveform' => bytes, 'mime_type' => string, 'voice' => file, ];




$wallpaper = ['sizes' => [photoSize], 'color' => int, ];




$wallpapers = ['wallpapers' => [wallpaper], ];




$webPage = ['url' => string, 'display_url' => string, 'type' => string, 'site_name' => string, 'title' => string, 'description' => string, 'photo' => photo, 'embed_url' => string, 'embed_type' => string, 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => string, 'animation' => animation, 'audio' => audio, 'document' => document, 'sticker' => sticker, 'video' => video, 'voice' => voice, ];