MadelineProto/docs/API_docs/constructors/index.md
2016-12-19 19:48:27 +03:00

69 KiB

Constructors

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

$account_Authorizations = ['authorizations' => [Authorization], ];

$account_Password = ['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], ];

$auth_Authorization = ['tmp_sessions' => int, 'user' => User, ];

$auth_CheckedPhone = ['phone_registered' => Bool, ];

$auth_CodeType = [];

$auth_CodeType = [];

$auth_CodeType = [];

$auth_ExportedAuthorization = ['id' => int, 'bytes' => bytes, ];

$auth_PasswordRecovery = ['email_pattern' => string, ];

$auth_SentCode = ['phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => string, 'next_type' => auth_CodeType, 'timeout' => int, ];

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

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

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

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

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

$Bool = [];

$Bool = [];

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

$BotInfo = ['user_id' => int, 'description' => string, 'commands' => [BotCommand], ];

$BotInlineResult = ['id' => string, 'type' => string, 'photo' => Photo, 'document' => Document, 'title' => string, 'description' => string, 'send_message' => BotInlineMessage, ];

$BotInlineMessage = ['caption' => string, 'reply_markup' => ReplyMarkup, ];

$BotInlineMessage = ['phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ];

$BotInlineMessage = ['geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];

$BotInlineMessage = ['geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ];

$BotInlineMessage = ['no_webpage' => Bool, 'message' => string, 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup, ];

$BotInlineResult = ['id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage, ];

$Chat = ['creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'editor' => Bool, 'moderator' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ];

$Chat = ['broadcast' => Bool, 'megagroup' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, ];

$ChatFull = ['can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => string, 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, ];

$ChannelMessagesFilter = ['exclude_new_messages' => Bool, 'ranges' => [MessageRange], ];

$ChannelMessagesFilter = [];

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

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

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

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

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

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

$ChannelParticipantsFilter = [];

$ChannelParticipantsFilter = [];

$ChannelParticipantsFilter = [];

$ChannelParticipantsFilter = [];

$ChannelParticipantRole = [];

$ChannelParticipantRole = [];

$ChannelParticipantRole = [];

$channels_ChannelParticipant = ['participant' => ChannelParticipant, 'users' => [User], ];

$channels_ChannelParticipants = ['count' => int, 'participants' => [ChannelParticipant], 'users' => [User], ];

$Chat = ['creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ];

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

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

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

$ChatInvite = ['channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User], ];

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

$ExportedChatInvite = [];

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

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

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

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

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

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

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

$ChatPhoto = [];

$Config = ['date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'megagroup_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, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature], ];

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

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

$ContactLink = [];

$ContactLink = [];

$ContactLink = [];

$ContactLink = [];

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

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

$contacts_Blocked = ['count' => int, 'blocked' => [ContactBlocked], 'users' => [User], ];

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

$contacts_Contacts = [];

$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_TopPeers = ['categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User], ];

$contacts_TopPeers = [];

$DcOption = ['ipv6' => Bool, 'media_only' => Bool, 'tcpo_only' => Bool, 'id' => int, 'ip_address' => string, 'port' => int, ];

$Dialog = ['peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ];

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

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

$DocumentAttribute = [];

$DocumentAttribute = ['voice' => Bool, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ];

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

$DocumentAttribute = [];

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

$DocumentAttribute = ['mask' => Bool, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ];

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

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

$DraftMessage = ['no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [MessageEntity], 'date' => int, ];

$DraftMessage = [];

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

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

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

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

$EncryptedChat = ['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, ];

$EncryptedFile = [];

$EncryptedMessage = ['random_id' => long, 'chat_id' => int, 'date' => int, 'bytes' => bytes, 'file' => EncryptedFile, ];

$EncryptedMessage = ['random_id' => long, 'chat_id' => int, 'date' => int, 'bytes' => bytes, ];

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

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

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

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

$FoundGif = ['url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, ];

$FoundGif = ['url' => string, 'photo' => Photo, 'document' => Document, ];

$Game = ['id' => long, 'access_hash' => long, 'short_name' => string, 'title' => string, 'description' => string, 'photo' => Photo, 'document' => Document, ];

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

$GeoPoint = [];

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

$help_AppChangelog = [];

$help_AppUpdate = ['id' => int, 'critical' => Bool, 'url' => string, 'text' => string, ];

$help_InviteText = ['message' => string, ];

$help_AppUpdate = [];

$help_Support = ['phone_number' => string, 'user' => User, ];

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

$HighScore = ['pos' => int, 'user_id' => int, 'score' => int, ];

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

$InlineBotSwitchPM = ['text' => string, 'start_param' => string, ];

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

$InputBotInlineMessage = ['reply_markup' => ReplyMarkup, ];

$InputBotInlineMessageID = ['dc_id' => int, 'id' => long, 'access_hash' => long, ];

$InputBotInlineMessage = ['caption' => string, 'reply_markup' => ReplyMarkup, ];

$InputBotInlineMessage = ['phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ];

$InputBotInlineMessage = ['geo_point' => InputGeoPoint, 'reply_markup' => ReplyMarkup, ];

$InputBotInlineMessage = ['geo_point' => InputGeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ];

$InputBotInlineMessage = ['no_webpage' => Bool, 'message' => string, 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup, ];

$InputBotInlineResult = ['id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => InputBotInlineMessage, ];

$InputBotInlineResult = ['id' => string, 'type' => string, 'title' => string, 'description' => string, 'document' => InputDocument, 'send_message' => InputBotInlineMessage, ];

$InputBotInlineResult = ['id' => string, 'short_name' => string, 'send_message' => InputBotInlineMessage, ];

$InputBotInlineResult = ['id' => string, 'type' => string, 'photo' => InputPhoto, 'send_message' => InputBotInlineMessage, ];

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

$InputChannel = [];

$InputChatPhoto = ['id' => InputPhoto, ];

$InputChatPhoto = [];

$InputChatPhoto = ['file' => InputFile, ];

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

$InputDocument = [];

$InputFileLocation = ['id' => long, 'access_hash' => long, 'version' => int, ];

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

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

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

$InputEncryptedFile = [];

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

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

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

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

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

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

$InputGame = ['bot_id' => InputUser, 'short_name' => string, ];

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

$InputGeoPoint = [];

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

$InputMedia = ['id' => InputDocument, 'caption' => string, ];

$InputMedia = ['url' => string, 'caption' => string, ];

$InputMedia = [];

$InputMedia = ['id' => InputGame, ];

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

$InputMedia = ['url' => string, 'q' => string, ];

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

$InputMedia = ['url' => string, 'caption' => string, ];

$InputMedia = ['file' => InputFile, 'mime_type' => string, 'attributes' => [DocumentAttribute], 'caption' => string, 'stickers' => [InputDocument], ];

$InputMedia = ['file' => InputFile, 'caption' => string, 'stickers' => [InputDocument], ];

$InputMedia = ['file' => InputFile, 'thumb' => InputFile, 'mime_type' => string, 'attributes' => [DocumentAttribute], 'caption' => string, 'stickers' => [InputDocument], ];

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

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

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$MessagesFilter = [];

$InputNotifyPeer = [];

$InputNotifyPeer = [];

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

$InputNotifyPeer = [];

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

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

$InputPeer = [];

$InputPeerNotifyEvents = [];

$InputPeerNotifyEvents = [];

$InputPeerNotifySettings = ['show_previews' => Bool, 'silent' => Bool, 'mute_until' => int, 'sound' => string, ];

$InputPeer = [];

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

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

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

$InputPhoto = [];

$InputPrivacyKey = [];

$InputPrivacyKey = [];

$InputPrivacyRule = [];

$InputPrivacyRule = [];

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

$InputPrivacyRule = [];

$InputPrivacyRule = [];

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

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

$ReportReason = [];

$ReportReason = [];

$ReportReason = [];

$InputStickerSet = [];

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

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

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

$InputStickeredMedia = ['id' => InputPhoto, ];

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

$InputUser = [];

$InputUser = [];

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

$KeyboardButton = ['text' => string, 'data' => bytes, ];

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

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

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

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

$KeyboardButton = ['same_peer' => Bool, 'text' => string, 'query' => string, ];

$KeyboardButton = ['text' => string, 'url' => string, ];

$MaskCoords = ['n' => int, 'x' => double, 'y' => double, 'zoom' => double, ];

$Message = ['out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => string, 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int, 'edit_date' => int, ];

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

$MessageAction = ['title' => string, 'chat_id' => int, ];

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

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

$MessageAction = [];

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

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

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

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

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

$MessageAction = [];

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

$MessageAction = [];

$MessageAction = [];

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

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

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

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

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

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

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

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

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

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

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

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

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

$MessageFwdHeader = ['from_id' => int, 'date' => int, 'channel_id' => int, 'channel_post' => int, ];

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

$MessageMedia = ['document' => Document, 'caption' => string, ];

$MessageMedia = [];

$MessageMedia = ['game' => Game, ];

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

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

$MessageMedia = [];

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

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

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

$Message = ['out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'reply_to_msg_id' => int, 'date' => int, 'action' => MessageAction, ];

$messages_AffectedHistory = ['pts' => int, 'pts_count' => int, 'offset' => int, ];

$messages_AffectedMessages = ['pts' => int, 'pts_count' => int, ];

$messages_AllStickers = ['hash' => int, 'sets' => [StickerSet], ];

$messages_AllStickers = [];

$messages_ArchivedStickers = ['count' => int, 'sets' => [StickerSetCovered], ];

$messages_BotCallbackAnswer = ['alert' => Bool, 'has_url' => Bool, 'message' => string, 'url' => string, ];

$messages_BotResults = ['gallery' => Bool, 'query_id' => long, 'next_offset' => string, 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], ];

$messages_Messages = ['pts' => int, 'count' => int, 'messages' => [Message], '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_DhConfig = ['random' => bytes, ];

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

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

$messages_FeaturedStickers = ['hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long], ];

$messages_FeaturedStickers = [];

$messages_FoundGifs = ['next_offset' => int, 'results' => [FoundGif], ];

$messages_HighScores = ['scores' => [HighScore], 'users' => [User], ];

$messages_MessageEditData = ['caption' => Bool, ];

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

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

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

$messages_RecentStickers = ['hash' => int, 'stickers' => [Document], ];

$messages_RecentStickers = [];

$messages_SavedGifs = ['hash' => int, 'gifs' => [Document], ];

$messages_SavedGifs = [];

$messages_SentEncryptedMessage = ['date' => int, 'file' => EncryptedFile, ];

$messages_SentEncryptedMessage = ['date' => int, ];

$messages_StickerSet = ['set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document], ];

$messages_StickerSetInstallResult = ['sets' => [StickerSetCovered], ];

$messages_StickerSetInstallResult = [];

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

$messages_Stickers = [];

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

$NotifyPeer = [];

$NotifyPeer = [];

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

$NotifyPeer = [];

$Null = [];

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

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

$PeerNotifyEvents = [];

$PeerNotifyEvents = [];

$PeerNotifySettings = ['show_previews' => Bool, 'silent' => Bool, 'mute_until' => int, 'sound' => string, ];

$PeerNotifySettings = [];

$PeerSettings = ['report_spam' => Bool, ];

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

$Photo = ['has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize], ];

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

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

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

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

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

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

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

$PrivacyKey = [];

$PrivacyKey = [];

$PrivacyRule = [];

$PrivacyRule = [];

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

$PrivacyRule = [];

$PrivacyRule = [];

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

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

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

$ReplyMarkup = ['single_use' => Bool, 'selective' => Bool, ];

$ReplyMarkup = ['selective' => Bool, ];

$ReplyMarkup = ['resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow], ];

$SendMessageAction = [];

$SendMessageAction = [];

$SendMessageAction = [];

$SendMessageAction = [];

$SendMessageAction = [];

$SendMessageAction = [];

$SendMessageAction = [];

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

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

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

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

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

$StickerSet = ['installed' => Bool, 'archived' => Bool, 'official' => Bool, 'masks' => Bool, 'id' => long, 'access_hash' => long, 'title' => string, 'short_name' => string, 'count' => int, 'hash' => int, ];

$StickerSetCovered = ['set' => StickerSet, 'cover' => Document, ];

$StickerSetCovered = ['set' => StickerSet, 'covers' => [Document], ];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$storage_FileType = [];

$TopPeer = ['peer' => Peer, 'rating' => double, ];

$TopPeerCategory = [];

$TopPeerCategory = [];

$TopPeerCategory = [];

$TopPeerCategory = [];

$TopPeerCategory = [];

$TopPeerCategoryPeers = ['category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer], ];

$True = [];

$Update = ['query_id' => long, 'user_id' => int, 'peer' => Peer, 'msg_id' => int, 'chat_instance' => long, 'data' => bytes, 'game_short_name' => string, ];

$Update = ['query_id' => long, 'user_id' => int, 'query' => string, 'geo' => GeoPoint, 'offset' => string, ];

$Update = ['user_id' => int, 'query' => string, 'geo' => GeoPoint, 'id' => string, 'msg_id' => InputBotInlineMessageID, ];

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

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

$Update = ['channel_id' => int, 'id' => int, ];

$Update = ['channel_id' => int, 'pts' => int, ];

$Update = ['chat_id' => int, 'enabled' => Bool, 'version' => int, ];

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

$Update = ['chat_id' => int, 'user_id' => int, 'is_admin' => Bool, 'version' => int, ];

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

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

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

$Update = [];

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

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

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

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

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

$Update = ['peer' => Peer, 'draft' => DraftMessage, ];

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

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

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

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

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

$Update = ['query_id' => long, 'user_id' => int, 'msg_id' => InputBotInlineMessageID, 'chat_instance' => long, 'data' => bytes, 'game_short_name' => string, ];

$Update = ['id' => int, 'random_id' => long, ];

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

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

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

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

$Update = ['stickerset' => messages_StickerSet, ];

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

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

$Update = [];

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

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

$Update = [];

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

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

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

$Update = [];

$Update = [];

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

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

$Updates = ['out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => string, 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity], ];

$Updates = ['out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'id' => int, 'user_id' => int, 'message' => string, 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity], ];

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

$Update = [];

$Update = ['masks' => Bool, 'order' => [long], ];

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

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

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

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

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

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

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

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

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

$Updates = [];

$updates_ChannelDifference = ['final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], ];

$updates_ChannelDifference = ['final' => Bool, 'pts' => int, 'timeout' => int, ];

$updates_ChannelDifference = ['final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_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_Difference = ['date' => int, 'seq' => int, ];

$updates_Difference = ['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, ];

$upload_File = ['type' => storage_FileType, 'mtime' => int, 'bytes' => bytes, ];

$User = ['self' => Bool, 'contact' => Bool, 'mutual_contact' => Bool, 'deleted' => Bool, 'bot' => Bool, 'bot_chat_history' => Bool, 'bot_nochats' => Bool, 'verified' => Bool, 'restricted' => Bool, 'min' => Bool, 'bot_inline_geo' => Bool, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ];

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

$UserFull = ['blocked' => Bool, 'user' => User, 'about' => string, 'link' => contacts_Link, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, ];

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

$UserProfilePhoto = [];

$UserStatus = [];

$UserStatus = [];

$UserStatus = [];

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

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

$UserStatus = [];

[$Vector t](../types/Vector t.md) = [];

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

$WallPaper = ['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, ];

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

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