MadelineProtoDocs/old_docs/API_docs_v38/constructors/README.md
2019-12-27 18:25:37 +01:00

74 KiB

title description image
Constructors List of constructors https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructors

Back to API documentation index




$account.authorizations = ['authorizations' => [Authorization], ];




$account.noPassword = ['new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];




$account.password = ['current_salt' => bytes, 'new_salt' => bytes, 'hint' => string, 'has_recovery' => Bool, 'email_unconfirmed_pattern' => string, ];




$account.passwordInputSettings = ['new_salt' => bytes, 'new_password_hash' => bytes, 'hint' => string, 'email' => string, ];




$account.passwordSettings = ['email' => string, ];




$account.privacyRules = ['rules' => [PrivacyRule], 'users' => [User], ];




$account.sentChangePhoneCode = ['phone_code_hash' => string, 'send_call_timeout' => int, ];




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




$audio = ['id' => long, 'access_hash' => long, 'date' => int, 'duration' => int, 'mime_type' => string, 'size' => int, 'dc_id' => int, ];




$audioEmpty = ['id' => long, ];




$auth.authorization = ['user' => User, ];




$auth.checkedPhone = ['phone_registered' => Bool, ];




$auth.exportedAuthorization = ['id' => int, 'bytes' => bytes, ];




$auth.passwordRecovery = ['email_pattern' => string, ];




$auth.sentAppCode = ['phone_registered' => Bool, 'phone_code_hash' => string, 'send_call_timeout' => int, 'is_password' => Bool, ];




$auth.sentCode = ['phone_registered' => Bool, 'phone_code_hash' => string, 'send_call_timeout' => int, 'is_password' => Bool, ];




$authorization = ['hash' => long, 'device_model' => string, 'platform' => string, 'system_version' => string, 'api_id' => int, 'app_name' => string, 'app_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ];




$boolFalse = [];




$boolTrue = [];




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




$botInfo = ['user_id' => int, 'version' => int, 'share_text' => string, 'description' => string, 'commands' => [BotCommand], ];




$botInfoEmpty = [];




$channel = ['id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, ];




$channelForbidden = ['id' => int, 'access_hash' => long, 'title' => string, ];




$channelFull = ['id' => int, 'about' => string, 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, ];




$channelMessagesFilter = ['ranges' => [MessageRange], ];




$channelMessagesFilterCollapsed = [];




$channelMessagesFilterEmpty = [];




$channelParticipant = ['user_id' => int, 'date' => int, ];




$channelParticipantCreator = ['user_id' => int, ];




$channelParticipantEditor = ['user_id' => int, 'inviter_id' => int, 'date' => int, ];




$channelParticipantKicked = ['user_id' => int, 'kicked_by' => int, 'date' => int, ];




$channelParticipantModerator = ['user_id' => int, 'inviter_id' => int, 'date' => int, ];




$channelParticipantSelf = ['user_id' => int, 'inviter_id' => int, 'date' => int, ];




$channelParticipantsAdmins = [];




$channelParticipantsKicked = [];




$channelParticipantsRecent = [];




$channelRoleEditor = [];




$channelRoleEmpty = [];




$channelRoleModerator = [];




$channels.channelParticipant = ['participant' => ChannelParticipant, 'users' => [User], ];




$channels.channelParticipants = ['count' => int, 'participants' => [ChannelParticipant], 'users' => [User], ];




$chat = ['id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, ];




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




$chatForbidden = ['id' => int, 'title' => string, ];




$chatFull = ['id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], ];




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




$chatInviteAlready = ['chat' => Chat, ];




$chatInviteEmpty = [];




$chatInviteExported = ['link' => string, ];




$chatParticipant = ['user_id' => int, 'inviter_id' => int, 'date' => int, ];




$chatParticipants = ['chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int, ];




$chatParticipantsForbidden = ['chat_id' => int, 'self_participant' => ChatParticipant, ];




$chatPhoto = ['photo_small' => FileLocation, 'photo_big' => FileLocation, ];




$chatPhotoEmpty = [];




$config = ['date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature], ];




$contact = ['user_id' => int, 'mutual' => Bool, ];




$contactBlocked = ['user_id' => int, 'date' => int, ];




$contactLinkContact = [];




$contactLinkHasPhone = [];




$contactLinkNone = [];




$contactLinkUnknown = [];




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




$contactSuggested = ['user_id' => int, 'mutual_contacts' => int, ];




$contacts.blocked = ['blocked' => [ContactBlocked], 'users' => [User], ];




$contacts.blockedSlice = ['count' => int, 'blocked' => [ContactBlocked], 'users' => [User], ];




$contacts.contacts = ['contacts' => [Contact], 'users' => [User], ];




$contacts.contactsNotModified = [];




$contacts.found = ['results' => [Peer], 'chats' => [Chat], 'users' => [User], ];




$contacts.importedContacts = ['imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User], ];




$contacts.link = ['my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ];




$contacts.resolvedPeer = ['peer' => Peer, 'chats' => [Chat], 'users' => [User], ];




$contacts.suggested = ['results' => [ContactSuggested], 'users' => [User], ];




$dcOption = ['id' => int, 'ip_address' => string, 'port' => int, ];




$dialog = ['peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, ];




$dialogChannel = ['peer' => Peer, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, ];




$disabledFeature = ['feature' => string, 'description' => string, ];




$document = ['id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute], ];




$documentAttributeAnimated = [];




$documentAttributeAudio = ['duration' => int, 'title' => string, 'performer' => string, ];




$documentAttributeFilename = ['file_name' => string, ];




$documentAttributeImageSize = ['w' => int, 'h' => int, ];




$documentAttributeSticker = ['alt' => string, 'stickerset' => InputStickerSet, ];




$documentAttributeVideo = ['duration' => int, 'w' => int, 'h' => int, ];




$documentEmpty = ['id' => long, ];




$encryptedChat = ['id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => bytes, 'key_fingerprint' => long, ];




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




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




$encryptedChatRequested = ['id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a' => bytes, ];




$encryptedChatWaiting = ['id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, ];




$encryptedFile = ['id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'key_fingerprint' => int, ];




$encryptedFileEmpty = [];




$encryptedMessage = ['chat_id' => int, 'date' => int, 'decrypted_message' => DecryptedMessage, 'file' => EncryptedFile, ];




$encryptedMessageService = ['chat_id' => int, 'date' => int, 'decrypted_message' => DecryptedMessage, ];




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




$fileLocation = ['dc_id' => int, 'volume_id' => long, 'local_id' => int, 'secret' => long, ];




$fileLocationUnavailable = ['volume_id' => long, 'local_id' => int, 'secret' => long, ];




$geoPoint = ['long' => double, 'lat' => double, ];




$geoPointEmpty = [];




$help.appChangelog = ['text' => string, ];




$help.appChangelogEmpty = [];




$help.appUpdate = ['id' => int, 'critical' => Bool, 'url' => string, 'text' => string, ];




$help.inviteText = ['message' => string, ];




$help.noAppUpdate = [];




$help.support = ['phone_number' => string, 'user' => User, ];




$importedContact = ['user_id' => int, 'client_id' => long, ];




$inputAppEvent = ['time' => double, 'type' => string, 'peer' => long, 'data' => string, ];




$inputAudio = ['id' => long, 'access_hash' => long, ];




$inputAudioEmpty = [];




$inputAudioFileLocation = ['id' => long, 'access_hash' => long, ];




$inputChannel = ['channel_id' => int, 'access_hash' => long, ];




$inputChannelEmpty = [];




$inputChatPhoto = ['id' => InputPhoto, 'crop' => InputPhotoCrop, ];




$inputChatPhotoEmpty = [];




$inputChatUploadedPhoto = ['file' => InputFile, 'crop' => InputPhotoCrop, ];




$inputDocument = ['id' => long, 'access_hash' => long, ];




$inputDocumentEmpty = [];




$inputDocumentFileLocation = ['id' => long, 'access_hash' => long, ];




$inputEncryptedChat = ['chat_id' => int, 'access_hash' => long, ];




$inputEncryptedFile = ['id' => long, 'access_hash' => long, ];




$inputEncryptedFileBigUploaded = ['id' => long, 'parts' => int, 'key_fingerprint' => int, ];




$inputEncryptedFileEmpty = [];




$inputEncryptedFileLocation = ['id' => long, 'access_hash' => long, ];




$inputEncryptedFileUploaded = ['id' => long, 'parts' => int, 'md5_checksum' => string, 'key_fingerprint' => int, ];




$inputFile = ['id' => long, 'parts' => int, 'name' => string, 'md5_checksum' => string, ];




$inputFileBig = ['id' => long, 'parts' => int, 'name' => string, ];




$inputFileLocation = ['volume_id' => long, 'local_id' => int, 'secret' => long, ];




$inputGeoPoint = ['lat' => double, 'long' => double, ];




$inputGeoPointEmpty = [];




$inputMediaAudio = ['id' => InputAudio, ];




$inputMediaContact = ['phone_number' => string, 'first_name' => string, 'last_name' => string, ];




$inputMediaDocument = ['id' => InputDocument, ];




$inputMediaEmpty = [];




$inputMediaGeoPoint = ['geo_point' => InputGeoPoint, ];




$inputMediaPhoto = ['id' => InputPhoto, 'caption' => string, ];




$inputMediaUploadedAudio = ['file' => InputFile, 'duration' => int, 'mime_type' => string, ];




$inputMediaUploadedDocument = ['file' => InputFile, 'mime_type' => string, 'attributes' => [DocumentAttribute], ];




$inputMediaUploadedPhoto = ['file' => InputFile, 'caption' => string, ];




$inputMediaUploadedThumbDocument = ['file' => InputFile, 'thumb' => InputFile, 'mime_type' => string, 'attributes' => [DocumentAttribute], ];




$inputMediaUploadedThumbVideo = ['file' => InputFile, 'thumb' => InputFile, 'duration' => int, 'w' => int, 'h' => int, 'mime_type' => string, 'caption' => string, ];




$inputMediaUploadedVideo = ['file' => InputFile, 'duration' => int, 'w' => int, 'h' => int, 'mime_type' => string, 'caption' => string, ];




$inputMediaVenue = ['geo_point' => InputGeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, ];




$inputMediaVideo = ['id' => InputVideo, 'caption' => string, ];




$inputMessagesFilterAudio = [];




$inputMessagesFilterAudioDocuments = [];




$inputMessagesFilterDocument = [];




$inputMessagesFilterEmpty = [];




$inputMessagesFilterPhotoVideo = [];




$inputMessagesFilterPhotoVideoDocuments = [];




$inputMessagesFilterPhotos = [];




$inputMessagesFilterUrl = [];




$inputMessagesFilterVideo = [];




$inputNotifyAll = [];




$inputNotifyChats = [];




$inputNotifyPeer = ['peer' => InputPeer, ];




$inputNotifyUsers = [];




$inputPeerChannel = ['channel_id' => int, 'access_hash' => long, ];




$inputPeerChat = ['chat_id' => int, ];




$inputPeerEmpty = [];




$inputPeerNotifyEventsAll = [];




$inputPeerNotifyEventsEmpty = [];




$inputPeerNotifySettings = ['mute_until' => int, 'sound' => string, 'show_previews' => Bool, 'events_mask' => int, ];




$inputPeerSelf = [];




$inputPeerUser = ['user_id' => int, 'access_hash' => long, ];




$inputPhoneContact = ['client_id' => long, 'phone' => string, 'first_name' => string, 'last_name' => string, ];




$inputPhoto = ['id' => long, 'access_hash' => long, ];




$inputPhotoCrop = ['crop_left' => double, 'crop_top' => double, 'crop_width' => double, ];




$inputPhotoCropAuto = [];




$inputPhotoEmpty = [];




$inputPrivacyKeyStatusTimestamp = [];




$inputPrivacyValueAllowAll = [];




$inputPrivacyValueAllowContacts = [];




$inputPrivacyValueAllowUsers = ['users' => [InputUser], ];




$inputPrivacyValueDisallowAll = [];




$inputPrivacyValueDisallowContacts = [];




$inputPrivacyValueDisallowUsers = ['users' => [InputUser], ];




$inputStickerSetEmpty = [];




$inputStickerSetID = ['id' => long, 'access_hash' => long, ];




$inputStickerSetShortName = ['short_name' => string, ];




$inputUser = ['user_id' => int, 'access_hash' => long, ];




$inputUserEmpty = [];




$inputUserSelf = [];




$inputVideo = ['id' => long, 'access_hash' => long, ];




$inputVideoEmpty = [];




$inputVideoFileLocation = ['id' => long, 'access_hash' => long, ];




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




$keyboardButtonRow = ['buttons' => [KeyboardButton], ];




$message = ['id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => string, 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int, ];




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




$messageActionChatAddUser = ['user_id' => int, ];




$messageActionChatCreate = ['title' => string, 'users' => [int], ];




$messageActionChatDeletePhoto = [];




$messageActionChatDeleteUser = ['user_id' => int, ];




$messageActionChatEditPhoto = ['photo' => Photo, ];




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




$messageActionChatJoinedByLink = ['inviter_id' => int, ];




$messageActionEmpty = [];




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




$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, ];




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




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




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




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




$messageGroup = ['min_id' => int, 'max_id' => int, 'count' => int, 'date' => int, ];




$messageMediaAudio = ['audio' => Audio, ];




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




$messageMediaDocument = ['document' => Document, ];




$messageMediaEmpty = [];




$messageMediaGeo = ['geo' => GeoPoint, ];




$messageMediaPhoto = ['photo' => Photo, 'caption' => string, ];




$messageMediaUnsupported = [];




$messageMediaVenue = ['geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, ];




$messageMediaVideo = ['video' => Video, 'caption' => string, ];




$messageMediaWebPage = ['webpage' => WebPage, ];




$messageRange = ['min_id' => int, 'max_id' => int, ];




$messageService = ['id' => int, 'from_id' => int, 'to_id' => Peer, 'date' => int, 'action' => MessageAction, ];




$messages.affectedHistory = ['pts' => int, 'pts_count' => int, 'offset' => int, ];




$messages.affectedMessages = ['pts' => int, 'pts_count' => int, ];




$messages.allStickers = ['hash' => string, 'sets' => [StickerSet], ];




$messages.allStickersNotModified = [];




$messages.channelMessages = ['pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User], ];




$messages.chatFull = ['full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User], ];




$messages.chats = ['chats' => [Chat], ];




$messages.dhConfig = ['g' => int, 'p' => bytes, 'version' => int, 'random' => bytes, ];




$messages.dhConfigNotModified = ['random' => bytes, ];




$messages.dialogs = ['dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], ];




$messages.dialogsSlice = ['count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], ];




$messages.messages = ['messages' => [Message], 'chats' => [Chat], 'users' => [User], ];




$messages.messagesSlice = ['count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User], ];




$messages.sentEncryptedFile = ['date' => int, 'file' => EncryptedFile, ];




$messages.sentEncryptedMessage = ['date' => int, ];




$messages.stickerSet = ['set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document], ];




$messages.stickers = ['hash' => string, 'stickers' => [Document], ];




$messages.stickersNotModified = [];




$nearestDc = ['country' => string, 'this_dc' => int, 'nearest_dc' => int, ];




$notifyAll = [];




$notifyChats = [];




$notifyPeer = ['peer' => Peer, ];




$notifyUsers = [];




$null = [];




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




$peerChat = ['chat_id' => int, ];




$peerNotifyEventsAll = [];




$peerNotifyEventsEmpty = [];




$peerNotifySettings = ['mute_until' => int, 'sound' => string, 'show_previews' => Bool, 'events_mask' => int, ];




$peerNotifySettingsEmpty = [];




$peerUser = ['user_id' => int, ];




$photo = ['id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize], ];




$photoCachedSize = ['type' => string, 'location' => FileLocation, 'w' => int, 'h' => int, 'bytes' => bytes, ];




$photoEmpty = ['id' => long, ];




$photoSize = ['type' => string, 'location' => FileLocation, 'w' => int, 'h' => int, 'size' => int, ];




$photoSizeEmpty = ['type' => string, ];




$photos.photo = ['photo' => Photo, 'users' => [User], ];




$photos.photos = ['photos' => [Photo], 'users' => [User], ];




$photos.photosSlice = ['count' => int, 'photos' => [Photo], 'users' => [User], ];




$privacyKeyStatusTimestamp = [];




$privacyValueAllowAll = [];




$privacyValueAllowContacts = [];




$privacyValueAllowUsers = ['users' => [int], ];




$privacyValueDisallowAll = [];




$privacyValueDisallowContacts = [];




$privacyValueDisallowUsers = ['users' => [int], ];




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




$replyKeyboardForceReply = [];




$replyKeyboardHide = [];




$replyKeyboardMarkup = ['rows' => [KeyboardButtonRow], ];




$sendMessageCancelAction = [];




$sendMessageChooseContactAction = [];




$sendMessageGeoLocationAction = [];




$sendMessageRecordAudioAction = [];




$sendMessageRecordVideoAction = [];




$sendMessageTypingAction = [];




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




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




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




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




$stickerPack = ['emoticon' => string, 'documents' => [long], ];




$stickerSet = ['id' => long, 'access_hash' => long, 'title' => string, 'short_name' => string, 'count' => int, 'hash' => int, ];




$storage.fileGif = [];




$storage.fileJpeg = [];




$storage.fileMov = [];




$storage.fileMp3 = [];




$storage.fileMp4 = [];




$storage.filePartial = [];




$storage.filePdf = [];




$storage.filePng = [];




$storage.fileUnknown = [];




$storage.fileWebp = [];




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




$updateChannelGroup = ['channel_id' => int, 'group' => MessageGroup, ];




$updateChannelMessageViews = ['channel_id' => int, 'id' => int, 'views' => int, ];




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




$updateChatParticipantAdd = ['chat_id' => int, 'user_id' => int, 'inviter_id' => int, 'date' => int, 'version' => int, ];




$updateChatParticipantDelete = ['chat_id' => int, 'user_id' => int, 'version' => int, ];




$updateChatParticipants = ['participants' => ChatParticipants, ];




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




$updateContactLink = ['user_id' => int, 'my_link' => ContactLink, 'foreign_link' => ContactLink, ];




$updateContactRegistered = ['user_id' => int, 'date' => int, ];




$updateDcOptions = ['dc_options' => [DcOption], ];




$updateDeleteChannelMessages = ['channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int, ];




$updateDeleteMessages = ['messages' => [int], 'pts' => int, 'pts_count' => int, ];




$updateEncryptedChatTyping = ['chat_id' => int, ];




$updateEncryptedMessagesRead = ['chat_id' => int, 'max_date' => int, 'date' => int, ];




$updateEncryption = ['chat' => EncryptedChat, 'date' => int, ];




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




$updateNewAuthorization = ['auth_key_id' => long, 'date' => int, 'device' => string, 'location' => string, ];




$updateNewChannelMessage = ['message' => Message, 'pts' => int, 'pts_count' => int, ];




$updateNewEncryptedMessage = ['message' => EncryptedMessage, 'qts' => int, ];




$updateNewMessage = ['message' => Message, 'pts' => int, 'pts_count' => int, ];




$updateNotifySettings = ['peer' => NotifyPeer, 'notify_settings' => PeerNotifySettings, ];




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




$updateReadChannelInbox = ['channel_id' => int, 'max_id' => int, ];




$updateReadHistoryInbox = ['peer' => Peer, 'max_id' => int, 'pts' => int, 'pts_count' => int, ];




$updateReadHistoryOutbox = ['peer' => Peer, 'max_id' => int, 'pts' => int, 'pts_count' => int, ];




$updateReadMessagesContents = ['messages' => [int], 'pts' => int, 'pts_count' => int, ];




$updateServiceNotification = ['type' => string, 'message' => string, 'media' => MessageMedia, 'popup' => Bool, ];




$updateShort = ['update' => Update, 'date' => int, ];




$updateShortChatMessage = ['id' => int, 'from_id' => int, 'chat_id' => int, 'message' => string, 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity], ];




$updateShortMessage = ['id' => int, 'user_id' => int, 'message' => string, 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity], ];




$updateShortSentMessage = ['id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity], ];




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




$updateUserName = ['user_id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ];




$updateUserPhone = ['user_id' => int, 'phone' => string, ];




$updateUserPhoto = ['user_id' => int, 'date' => int, 'photo' => UserProfilePhoto, 'previous' => Bool, ];




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




$updateUserTyping = ['user_id' => int, 'action' => SendMessageAction, ];




$updateWebPage = ['webpage' => WebPage, 'pts' => int, 'pts_count' => int, ];




$updates = ['updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int, ];




$updates.channelDifference = ['pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], ];




$updates.channelDifferenceEmpty = ['pts' => int, 'timeout' => int, ];




$updates.channelDifferenceTooLong = ['pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User], ];




$updates.difference = ['new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates.State, ];




$updates.differenceEmpty = ['date' => int, 'seq' => int, ];




$updates.differenceSlice = ['new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates.State, ];




$updates.state = ['pts' => int, 'qts' => int, 'date' => int, 'seq' => int, 'unread_count' => int, ];




$updatesCombined = ['updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int, ];




$updatesTooLong = [];




$upload.file = ['type' => storage.FileType, 'mtime' => int, 'bytes' => bytes, ];




$user = ['id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ];




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




$userFull = ['user' => User, 'link' => contacts.Link, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'blocked' => Bool, 'bot_info' => BotInfo, ];




$userProfilePhoto = ['photo_id' => long, 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];




$userProfilePhotoEmpty = [];




$userStatusEmpty = [];




$userStatusLastMonth = [];




$userStatusLastWeek = [];




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




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




$userStatusRecently = [];




$vector = [];




$video = ['id' => long, 'access_hash' => long, 'date' => int, 'duration' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'w' => int, 'h' => int, ];




$videoEmpty = ['id' => long, ];




$wallPaper = ['id' => int, 'title' => string, 'sizes' => [PhotoSize], 'color' => int, ];




$wallPaperSolid = ['id' => int, 'title' => string, 'bg_color' => int, 'color' => int, ];




$webPage = ['id' => long, '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, 'document' => Document, ];




$webPageEmpty = ['id' => long, ];




$webPagePending = ['id' => long, 'date' => int, ];