From 43adf77378376b506d4f503839d095fe9d42a028 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 21 Dec 2017 20:08:25 +0000 Subject: [PATCH] docufix --- docs/API_docs/methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - docs/TD_docs/constructors/callConnection.md | 2 +- docs/TD_docs/constructors/channelFull.md | 4 +- docs/TD_docs/constructors/chat.md | 3 +- docs/TD_docs/constructors/chatEvent.md | 2 +- .../chatEventDescriptionChanged.md | 4 +- .../constructors/chatEventPhotoChanged.md | 8 +- .../chatEventStickerSetChanged.md | 23 ++ .../constructors/chatEventTitleChanged.md | 4 +- .../constructors/chatEventUsernameChanged.md | 4 +- docs/TD_docs/constructors/chatTypeChannel.md | 1 + docs/TD_docs/constructors/chatTypeSecret.md | 1 + docs/TD_docs/constructors/count.md | 22 ++ docs/TD_docs/constructors/file.md | 2 +- docs/TD_docs/constructors/foundMessages.md | 2 +- docs/TD_docs/constructors/game.md | 2 +- docs/TD_docs/constructors/index.md | 101 ++++--- .../constructors/inlineQueryResults.md | 2 +- .../constructors/inputFileGenerated.md | 2 +- .../constructors/inputMessageAnimation.md | 2 +- .../TD_docs/constructors/inputMessageAudio.md | 2 +- .../constructors/inputMessageDocument.md | 2 +- .../TD_docs/constructors/inputMessagePhoto.md | 2 +- .../constructors/inputMessageSticker.md | 2 +- .../TD_docs/constructors/inputMessageVideo.md | 2 +- .../constructors/inputMessageVideoNote.md | 2 +- .../{inputThumbGenerated.md => inputThumb.md} | 11 +- docs/TD_docs/constructors/inputThumbLocal.md | 24 -- docs/TD_docs/constructors/message.md | 1 + docs/TD_docs/constructors/messageGameScore.md | 2 +- docs/TD_docs/constructors/photo.md | 2 +- docs/TD_docs/constructors/profilePhoto.md | 2 +- .../searchMessagesFilterMention.md | 21 ++ .../searchMessagesFilterUnreadMention.md | 21 ++ docs/TD_docs/constructors/session.md | 2 +- docs/TD_docs/constructors/sticker.md | 2 +- docs/TD_docs/constructors/stickerSet.md | 2 +- docs/TD_docs/constructors/stickerSetInfo.md | 2 +- docs/TD_docs/constructors/textEntities.md | 22 ++ .../constructors/updateChatDraftMessage.md | 1 + .../constructors/updateChatIsPinned.md | 1 + docs/TD_docs/constructors/updateChatOrder.md | 6 +- .../constructors/updateChatReadInbox.md | 2 +- .../constructors/updateChatTopMessage.md | 1 + .../updateChatUnreadMentionCount.md | 23 ++ .../constructors/updateFavoriteStickers.md | 22 ++ .../constructors/updateFileGenerationStart.md | 2 +- .../updateInstalledStickerSets.md | 2 +- .../constructors/updateMessageMentionRead.md | 24 ++ .../constructors/updateNewCallbackQuery.md | 4 +- .../constructors/updateNewCustomQuery.md | 2 +- .../updateNewInlineCallbackQuery.md | 4 +- .../constructors/updateNewInlineQuery.md | 2 +- .../constructors/updateNewPreCheckoutQuery.md | 2 +- .../constructors/updateNewShippingQuery.md | 2 +- docs/TD_docs/constructors/user.md | 2 +- docs/TD_docs/methods/addChatMember.md | 6 +- docs/TD_docs/methods/addChatMembers.md | 4 +- docs/TD_docs/methods/addFavoriteSticker.md | 22 ++ docs/TD_docs/methods/addRecentSticker.md | 4 +- docs/TD_docs/methods/answerCallbackQuery.md | 2 +- docs/TD_docs/methods/answerCustomQuery.md | 2 +- docs/TD_docs/methods/answerInlineQuery.md | 2 +- .../TD_docs/methods/answerPreCheckoutQuery.md | 2 +- docs/TD_docs/methods/answerShippingQuery.md | 2 +- .../TD_docs/methods/changeChatMemberStatus.md | 4 +- docs/TD_docs/methods/changeStickerSet.md | 2 +- docs/TD_docs/methods/closeSecretChat.md | 4 +- docs/TD_docs/methods/deleteFavoriteSticker.md | 22 ++ .../TD_docs/methods/deleteImportedContacts.md | 21 ++ docs/TD_docs/methods/deleteProfilePhoto.md | 2 +- docs/TD_docs/methods/deleteSavedAnimation.md | 4 +- docs/TD_docs/methods/discardCall.md | 2 +- docs/TD_docs/methods/finishFileGeneration.md | 2 +- docs/TD_docs/methods/forwardMessages.md | 4 +- .../TD_docs/methods/getArchivedStickerSets.md | 2 +- docs/TD_docs/methods/getChatEventLog.md | 2 +- docs/TD_docs/methods/getChatHistory.md | 4 +- docs/TD_docs/methods/getChats.md | 2 +- docs/TD_docs/methods/getFavoriteStickers.md | 21 ++ docs/TD_docs/methods/getFileExtension.md | 22 ++ docs/TD_docs/methods/getFileMimeType.md | 22 ++ .../methods/getImportedContactCount.md | 21 ++ docs/TD_docs/methods/getStickerSet.md | 2 +- docs/TD_docs/methods/getStickers.md | 4 +- docs/TD_docs/methods/getTextEntities.md | 22 ++ docs/TD_docs/methods/importChatInviteLink.md | 4 +- docs/TD_docs/methods/index.md | 67 +++-- .../methods/reorderInstalledStickerSets.md | 2 +- docs/TD_docs/methods/searchChatMessages.md | 7 +- docs/TD_docs/methods/searchSecretMessages.md | 2 +- docs/TD_docs/methods/sendBotStartMessage.md | 4 +- .../methods/sendInlineQueryResultMessage.md | 6 +- docs/TD_docs/methods/sendMessage.md | 4 +- docs/TD_docs/methods/setChannelStickerSet.md | 23 ++ .../methods/setFileGenerationProgress.md | 2 +- docs/TD_docs/methods/setNetworkType.md | 4 +- docs/TD_docs/methods/setProfilePhoto.md | 4 +- docs/TD_docs/methods/terminateSession.md | 2 +- .../methods/viewTrendingStickerSets.md | 2 +- docs/TD_docs/types/ChatEventAction.md | 2 + docs/TD_docs/types/Count.md | 21 ++ docs/TD_docs/types/InputThumb.md | 6 +- docs/TD_docs/types/Ok.md | 8 + docs/TD_docs/types/SearchMessagesFilter.md | 4 + docs/TD_docs/types/Stickers.md | 2 + docs/TD_docs/types/Text.md | 4 + docs/TD_docs/types/TextEntities.md | 21 ++ docs/TD_docs/types/Update.md | 6 + docs/TD_docs/types/index.md | 4 + .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - .../methods/messages_sendMedia.md | 3 - .../methods/photos_uploadProfilePhoto.md | 1 - src/danog/MadelineProto/TL/TL.php | 2 +- src/danog/MadelineProto/TL_td.tl | 247 +++++++++++------- 159 files changed, 824 insertions(+), 388 deletions(-) create mode 100644 docs/TD_docs/constructors/chatEventStickerSetChanged.md create mode 100644 docs/TD_docs/constructors/count.md rename docs/TD_docs/constructors/{inputThumbGenerated.md => inputThumb.md} (50%) delete mode 100644 docs/TD_docs/constructors/inputThumbLocal.md create mode 100644 docs/TD_docs/constructors/searchMessagesFilterMention.md create mode 100644 docs/TD_docs/constructors/searchMessagesFilterUnreadMention.md create mode 100644 docs/TD_docs/constructors/textEntities.md create mode 100644 docs/TD_docs/constructors/updateChatUnreadMentionCount.md create mode 100644 docs/TD_docs/constructors/updateFavoriteStickers.md create mode 100644 docs/TD_docs/constructors/updateMessageMentionRead.md create mode 100644 docs/TD_docs/methods/addFavoriteSticker.md create mode 100644 docs/TD_docs/methods/deleteFavoriteSticker.md create mode 100644 docs/TD_docs/methods/deleteImportedContacts.md create mode 100644 docs/TD_docs/methods/getFavoriteStickers.md create mode 100644 docs/TD_docs/methods/getFileExtension.md create mode 100644 docs/TD_docs/methods/getFileMimeType.md create mode 100644 docs/TD_docs/methods/getImportedContactCount.md create mode 100644 docs/TD_docs/methods/getTextEntities.md create mode 100644 docs/TD_docs/methods/setChannelStickerSet.md create mode 100644 docs/TD_docs/types/Count.md create mode 100644 docs/TD_docs/types/TextEntities.md diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/docs/TD_docs/constructors/callConnection.md b/docs/TD_docs/constructors/callConnection.md index 81ddb6a2..5ef60654 100644 --- a/docs/TD_docs/constructors/callConnection.md +++ b/docs/TD_docs/constructors/callConnection.md @@ -13,7 +13,7 @@ Describes address of UDP reflectors | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Reflector identifier| +|id|[int64](../constructors/int64.md) | Yes|Reflector identifier| |ip|[string](../types/string.md) | Yes|IPv4 reflector address| |ipv6|[string](../types/string.md) | Yes|IPv6 reflector address| |port|[int](../types/int.md) | Yes|Reflector port| diff --git a/docs/TD_docs/constructors/channelFull.md b/docs/TD_docs/constructors/channelFull.md index d904a360..40cb7a8c 100644 --- a/docs/TD_docs/constructors/channelFull.md +++ b/docs/TD_docs/constructors/channelFull.md @@ -19,7 +19,9 @@ Gives full information about a channel |restricted\_count|[int](../types/int.md) | Yes|Number of restricted users in the channel, 0 if unknown| |banned\_count|[int](../types/int.md) | Yes|Number of users banned from the channel, 0 if unknown| |can\_get\_members|[Bool](../types/Bool.md) | Yes|True, if members of the channel can be retrieved| -|can\_set\_username|[Bool](../types/Bool.md) | Yes|True, if channel can be made public| +|can\_set\_username|[Bool](../types/Bool.md) | Yes|True, if the channel can be made public| +|can\_set\_sticker\_set|[Bool](../types/Bool.md) | Yes|True, if the channel sticker set can be changed| +|sticker\_set\_id|[int64](../constructors/int64.md) | Yes|Identifier of channel sticker set, or 0 if none| |invite\_link|[string](../types/string.md) | Yes|Invite link for this channel| |pinned\_message\_id|[int53](../types/int53.md) | Yes|Identifier of the pinned message in the channel chat, or 0 if none| |migrated\_from\_group\_id|[int](../types/int.md) | Yes|Identifier of the group, this supergroup migrated from, or 0 if none| diff --git a/docs/TD_docs/constructors/chat.md b/docs/TD_docs/constructors/chat.md index f5901cd8..03bf43e3 100644 --- a/docs/TD_docs/constructors/chat.md +++ b/docs/TD_docs/constructors/chat.md @@ -18,11 +18,12 @@ Chat (private chat or group chat or channel chat) |title|[string](../types/string.md) | Yes|Chat title| |photo|[chatPhoto](../constructors/chatPhoto.md) | Yes|Chat photo, nullable| |top\_message|[message](../constructors/message.md) | Yes|Last message in the chat, nullable| -|order|[long](../types/long.md) | Yes|Parameter by descending of which chats are sorted in the chat list. If order of two chats is equal, then they need to be sorted by id also in descending order. If order == 0, position of the chat in the list is undetermined| +|order|[int64](../constructors/int64.md) | Yes|Parameter by descending of which chats are sorted in the chat list. If order of two chats is equal, then they need to be sorted by id also in descending order. If order == 0, position of the chat in the list is undetermined| |is\_pinned|[Bool](../types/Bool.md) | Yes|True, if the chat is pinned| |unread\_count|[int](../types/int.md) | Yes|Count of unread messages in the chat| |last\_read\_inbox\_message\_id|[int53](../types/int53.md) | Yes|Identifier of last read incoming message| |last\_read\_outbox\_message\_id|[int53](../types/int53.md) | Yes|Identifier of last read outgoing message| +|unread\_mention\_count|[int](../types/int.md) | Yes|Count of unread messages with mention/reply in the chat| |notification\_settings|[notificationSettings](../constructors/notificationSettings.md) | Yes|Notification settings for this chat| |reply\_markup\_message\_id|[int53](../types/int53.md) | Yes|Identifier of the message from which reply markup need to be used or 0 if there is no default custom reply markup in the chat| |draft\_message|[draftMessage](../constructors/draftMessage.md) | Yes|Draft of a message in the chat, nullable. parse_mode in input_message_text always will be null| diff --git a/docs/TD_docs/constructors/chatEvent.md b/docs/TD_docs/constructors/chatEvent.md index 446ea9d0..6c8b8cee 100644 --- a/docs/TD_docs/constructors/chatEvent.md +++ b/docs/TD_docs/constructors/chatEvent.md @@ -13,7 +13,7 @@ Represents a chat event | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Chat event identifier| +|id|[int64](../constructors/int64.md) | Yes|Chat event identifier| |date|[int](../types/int.md) | Yes|Date of the event, unix time| |user\_id|[int](../types/int.md) | Yes|Identifier of a user who made the action| |action|[ChatEventAction](../types/ChatEventAction.md) | Yes|Action done by the user| diff --git a/docs/TD_docs/constructors/chatEventDescriptionChanged.md b/docs/TD_docs/constructors/chatEventDescriptionChanged.md index fdfa924a..ac306ae1 100644 --- a/docs/TD_docs/constructors/chatEventDescriptionChanged.md +++ b/docs/TD_docs/constructors/chatEventDescriptionChanged.md @@ -1,13 +1,13 @@ --- title: chatEventDescriptionChanged -description: Chat description changed +description: Chat description was changed --- ## Constructor: chatEventDescriptionChanged [Back to constructors index](index.md) -Chat description changed +Chat description was changed ### Attributes: diff --git a/docs/TD_docs/constructors/chatEventPhotoChanged.md b/docs/TD_docs/constructors/chatEventPhotoChanged.md index 03b4efc8..434fc726 100644 --- a/docs/TD_docs/constructors/chatEventPhotoChanged.md +++ b/docs/TD_docs/constructors/chatEventPhotoChanged.md @@ -1,20 +1,20 @@ --- title: chatEventPhotoChanged -description: Chat photo changed +description: Chat photo was changed --- ## Constructor: chatEventPhotoChanged [Back to constructors index](index.md) -Chat photo changed +Chat photo was changed ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|old\_photo|[chatPhoto](../constructors/chatPhoto.md) | Yes|Old photo value| -|new\_photo|[chatPhoto](../constructors/chatPhoto.md) | Yes|New photo value| +|old\_photo|[chatPhoto](../constructors/chatPhoto.md) | Yes|Old photo value, nullable| +|new\_photo|[chatPhoto](../constructors/chatPhoto.md) | Yes|New photo value, nullable| diff --git a/docs/TD_docs/constructors/chatEventStickerSetChanged.md b/docs/TD_docs/constructors/chatEventStickerSetChanged.md new file mode 100644 index 00000000..2d8bb289 --- /dev/null +++ b/docs/TD_docs/constructors/chatEventStickerSetChanged.md @@ -0,0 +1,23 @@ +--- +title: chatEventStickerSetChanged +description: Supergroup sticker set was changed +--- +## Constructor: chatEventStickerSetChanged +[Back to constructors index](index.md) + + + +Supergroup sticker set was changed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|old\_sticker\_set\_id|[int64](../constructors/int64.md) | Yes|Old identifier of chat sticker set, 0 if none| +|new\_sticker\_set\_id|[int64](../constructors/int64.md) | Yes|New identifier of chat sticker set, 0 if none| + + + +### Type: [ChatEventAction](../types/ChatEventAction.md) + + diff --git a/docs/TD_docs/constructors/chatEventTitleChanged.md b/docs/TD_docs/constructors/chatEventTitleChanged.md index 25cc3f58..6666f81b 100644 --- a/docs/TD_docs/constructors/chatEventTitleChanged.md +++ b/docs/TD_docs/constructors/chatEventTitleChanged.md @@ -1,13 +1,13 @@ --- title: chatEventTitleChanged -description: Chat title changed +description: Chat title was changed --- ## Constructor: chatEventTitleChanged [Back to constructors index](index.md) -Chat title changed +Chat title was changed ### Attributes: diff --git a/docs/TD_docs/constructors/chatEventUsernameChanged.md b/docs/TD_docs/constructors/chatEventUsernameChanged.md index ab5360f0..cb1c33f0 100644 --- a/docs/TD_docs/constructors/chatEventUsernameChanged.md +++ b/docs/TD_docs/constructors/chatEventUsernameChanged.md @@ -1,13 +1,13 @@ --- title: chatEventUsernameChanged -description: Chat username changed +description: Chat username was changed --- ## Constructor: chatEventUsernameChanged [Back to constructors index](index.md) -Chat username changed +Chat username was changed ### Attributes: diff --git a/docs/TD_docs/constructors/chatTypeChannel.md b/docs/TD_docs/constructors/chatTypeChannel.md index e40e38cf..aaf192fd 100644 --- a/docs/TD_docs/constructors/chatTypeChannel.md +++ b/docs/TD_docs/constructors/chatTypeChannel.md @@ -14,6 +14,7 @@ Chat with unlimited number of members | Name | Type | Required | Description | |----------|---------------|----------|-------------| |channel\_id|[int](../types/int.md) | Yes|Channel identifier| +|is\_supergroup|[Bool](../types/Bool.md) | Yes|True, if the channel is a supergroup and is not a broadcast| diff --git a/docs/TD_docs/constructors/chatTypeSecret.md b/docs/TD_docs/constructors/chatTypeSecret.md index 2fd7542e..8d240810 100644 --- a/docs/TD_docs/constructors/chatTypeSecret.md +++ b/docs/TD_docs/constructors/chatTypeSecret.md @@ -14,6 +14,7 @@ Secret chat with a user | Name | Type | Required | Description | |----------|---------------|----------|-------------| |secret\_chat\_id|[int](../types/int.md) | Yes|Secret chat identifier| +|user\_id|[int](../types/int.md) | Yes|User identifier of the peer| diff --git a/docs/TD_docs/constructors/count.md b/docs/TD_docs/constructors/count.md new file mode 100644 index 00000000..c6f8daef --- /dev/null +++ b/docs/TD_docs/constructors/count.md @@ -0,0 +1,22 @@ +--- +title: count +description: Contains some count +--- +## Constructor: count +[Back to constructors index](index.md) + + + +Contains some count + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|The count| + + + +### Type: [Count](../types/Count.md) + + diff --git a/docs/TD_docs/constructors/file.md b/docs/TD_docs/constructors/file.md index 4c0a1b39..09dfd98a 100644 --- a/docs/TD_docs/constructors/file.md +++ b/docs/TD_docs/constructors/file.md @@ -14,7 +14,7 @@ Represents a file | Name | Type | Required | Description | |----------|---------------|----------|-------------| |id|[int](../types/int.md) | Yes|Unique file identifier| -|persistent\_id|[string](../types/string.md) | Yes|Persistent file identifier, if exists. Can be used across application restarts or even other devices for current logged user. If begins with "http: " or "https: ", it is HTTP URL of the file. Currently, TDLib is unable to download files if only they URL is known. If downloadFile is called on a such file or it is sended to a secret chat TDLib starts file generation process by sending to the client updateFileGenerationStart with HTTP URL in the original_path and "#url#" as conversion string. Client supposed to generate the file by downloading it to the specified location| +|persistent\_id|[string](../types/string.md) | Yes|Persistent file identifier, if exists. Can be used across application restarts or even other devices for current logged user. If begins with "http: " or "https: ", it is HTTP URL of the file. Currently, TDLib is unable to download files if only they URL is known.-If downloadFile is called on a such file or it is sended to a secret chat TDLib starts file generation process by sending to the client updateFileGenerationStart with HTTP URL in the original_path and "#url#" as conversion string. Client supposed to generate the file by downloading it to the specified location| |size|[int](../types/int.md) | Yes|File size, 0 if unknown| |is\_being\_downloaded|[Bool](../types/Bool.md) | Yes|True, if the file is currently being downloaded| |local\_size|[int](../types/int.md) | Yes|Size of locally available part of the file. If size != 0 && local_size == size, full file is available locally| diff --git a/docs/TD_docs/constructors/foundMessages.md b/docs/TD_docs/constructors/foundMessages.md index d27f7fb4..4826b7eb 100644 --- a/docs/TD_docs/constructors/foundMessages.md +++ b/docs/TD_docs/constructors/foundMessages.md @@ -14,7 +14,7 @@ Contains list of found by search messages | Name | Type | Required | Description | |----------|---------------|----------|-------------| |messages|Array of [message](../constructors/message.md) | Yes|List of messages| -|next\_from\_search\_id|[long](../types/long.md) | Yes|Value to pass as from_search_id to get more results| +|next\_from\_search\_id|[int64](../constructors/int64.md) | Yes|Value to pass as from_search_id to get more results| diff --git a/docs/TD_docs/constructors/game.md b/docs/TD_docs/constructors/game.md index 5eb5554c..1d7b355b 100644 --- a/docs/TD_docs/constructors/game.md +++ b/docs/TD_docs/constructors/game.md @@ -13,7 +13,7 @@ Describes a game | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Game id| +|id|[int64](../constructors/int64.md) | Yes|Game id| |short\_name|[string](../types/string.md) | Yes|Game short name, to share a game use a URL https: t.me/{bot_username}?game={game_short_name}| |title|[string](../types/string.md) | Yes|Game title| |text|[string](../types/string.md) | Yes|Game text, usually containing game scoreboards| diff --git a/docs/TD_docs/constructors/index.md b/docs/TD_docs/constructors/index.md index fd0863e2..12a86d6a 100644 --- a/docs/TD_docs/constructors/index.md +++ b/docs/TD_docs/constructors/index.md @@ -53,7 +53,7 @@ description: List of constructors

[$call](../constructors/call.md) = \['id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'is_outgoing' => [Bool](../types/Bool.md), 'state' => [CallState](../types/CallState.md), \]; *** -

[$callConnection](../constructors/callConnection.md) = \['id' => [long](../types/long.md), 'ip' => [string](../types/string.md), 'ipv6' => [string](../types/string.md), 'port' => [int](../types/int.md), 'peer_tag' => [bytes](../types/bytes.md), \]; +

[$callConnection](../constructors/callConnection.md) = \['id' => [int64](../constructors/int64.md), 'ip' => [string](../types/string.md), 'ipv6' => [string](../types/string.md), 'port' => [int](../types/int.md), 'peer_tag' => [bytes](../types/bytes.md), \]; ***

[$callDiscardReasonDeclined](../constructors/callDiscardReasonDeclined.md) = \[\]; @@ -107,7 +107,7 @@ description: List of constructors

[$channel](../constructors/channel.md) = \['id' => [int](../types/int.md), 'username' => [string](../types/string.md), 'date' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), 'anyone_can_invite' => [Bool](../types/Bool.md), 'sign_messages' => [Bool](../types/Bool.md), 'is_supergroup' => [Bool](../types/Bool.md), 'is_verified' => [Bool](../types/Bool.md), 'restriction_reason' => [string](../types/string.md), \]; *** -

[$channelFull](../constructors/channelFull.md) = \['description' => [string](../types/string.md), 'member_count' => [int](../types/int.md), 'administrator_count' => [int](../types/int.md), 'restricted_count' => [int](../types/int.md), 'banned_count' => [int](../types/int.md), 'can_get_members' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'invite_link' => [string](../types/string.md), 'pinned_message_id' => [int53](../types/int53.md), 'migrated_from_group_id' => [int](../types/int.md), 'migrated_from_max_message_id' => [int53](../types/int53.md), \]; +

[$channelFull](../constructors/channelFull.md) = \['description' => [string](../types/string.md), 'member_count' => [int](../types/int.md), 'administrator_count' => [int](../types/int.md), 'restricted_count' => [int](../types/int.md), 'banned_count' => [int](../types/int.md), 'can_get_members' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_sticker_set' => [Bool](../types/Bool.md), 'sticker_set_id' => [int64](../constructors/int64.md), 'invite_link' => [string](../types/string.md), 'pinned_message_id' => [int53](../types/int53.md), 'migrated_from_group_id' => [int](../types/int.md), 'migrated_from_max_message_id' => [int53](../types/int53.md), \]; ***

[$channelMembersFilterAdministrators](../constructors/channelMembersFilterAdministrators.md) = \[\]; @@ -128,7 +128,7 @@ description: List of constructors

[$channelMembersFilterSearch](../constructors/channelMembersFilterSearch.md) = \['query' => [string](../types/string.md), \]; *** -

[$chat](../constructors/chat.md) = \['id' => [int53](../types/int53.md), 'type' => [ChatType](../types/ChatType.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), 'top_message' => [message](../constructors/message.md), 'order' => [long](../types/long.md), 'is_pinned' => [Bool](../types/Bool.md), 'unread_count' => [int](../types/int.md), 'last_read_inbox_message_id' => [int53](../types/int53.md), 'last_read_outbox_message_id' => [int53](../types/int53.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), 'reply_markup_message_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), 'client_data' => [string](../types/string.md), \]; +

[$chat](../constructors/chat.md) = \['id' => [int53](../types/int53.md), 'type' => [ChatType](../types/ChatType.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), 'top_message' => [message](../constructors/message.md), 'order' => [int64](../constructors/int64.md), 'is_pinned' => [Bool](../types/Bool.md), 'unread_count' => [int](../types/int.md), 'last_read_inbox_message_id' => [int53](../types/int53.md), 'last_read_outbox_message_id' => [int53](../types/int53.md), 'unread_mention_count' => [int](../types/int.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), 'reply_markup_message_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), 'client_data' => [string](../types/string.md), \]; ***

[$chatActionCancel](../constructors/chatActionCancel.md) = \[\]; @@ -170,7 +170,7 @@ description: List of constructors

[$chatActionUploadingVoice](../constructors/chatActionUploadingVoice.md) = \['progress' => [int](../types/int.md), \]; *** -

[$chatEvent](../constructors/chatEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChatEventAction](../types/ChatEventAction.md), \]; +

[$chatEvent](../constructors/chatEvent.md) = \['id' => [int64](../constructors/int64.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChatEventAction](../types/ChatEventAction.md), \]; ***

[$chatEventDescriptionChanged](../constructors/chatEventDescriptionChanged.md) = \['old_description' => [string](../types/string.md), 'new_description' => [string](../types/string.md), \]; @@ -214,6 +214,9 @@ description: List of constructors ***

[$chatEventSignMessagesToggled](../constructors/chatEventSignMessagesToggled.md) = \['sign_messages' => [Bool](../types/Bool.md), \]; +*** +

[$chatEventStickerSetChanged](../constructors/chatEventStickerSetChanged.md) = \['old_sticker_set_id' => [int64](../constructors/int64.md), 'new_sticker_set_id' => [int64](../constructors/int64.md), \]; + ***

[$chatEventTitleChanged](../constructors/chatEventTitleChanged.md) = \['old_title' => [string](../types/string.md), 'new_title' => [string](../types/string.md), \]; @@ -272,7 +275,7 @@ description: List of constructors

[$chatReportSpamState](../constructors/chatReportSpamState.md) = \['can_report_spam' => [Bool](../types/Bool.md), \]; *** -

[$chatTypeChannel](../constructors/chatTypeChannel.md) = \['channel_id' => [int](../types/int.md), \]; +

[$chatTypeChannel](../constructors/chatTypeChannel.md) = \['channel_id' => [int](../types/int.md), 'is_supergroup' => [Bool](../types/Bool.md), \]; ***

[$chatTypeGroup](../constructors/chatTypeGroup.md) = \['group_id' => [int](../types/int.md), \]; @@ -281,7 +284,7 @@ description: List of constructors

[$chatTypePrivate](../constructors/chatTypePrivate.md) = \['user_id' => [int](../types/int.md), \]; *** -

[$chatTypeSecret](../constructors/chatTypeSecret.md) = \['secret_chat_id' => [int](../types/int.md), \]; +

[$chatTypeSecret](../constructors/chatTypeSecret.md) = \['secret_chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), \]; ***

[$chats](../constructors/chats.md) = \['chat_ids' => \[[int53](../types/int53.md)\], \]; @@ -304,6 +307,9 @@ description: List of constructors ***

[$contact](../constructors/contact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]; +*** +

[$count](../constructors/count.md) = \['count' => [int](../types/int.md), \]; + ***

[$customRequestResult](../constructors/customRequestResult.md) = \['result' => [string](../types/string.md), \]; @@ -383,10 +389,10 @@ description: List of constructors

[$fileTypeWallpaper](../constructors/fileTypeWallpaper.md) = \[\]; *** -

[$foundMessages](../constructors/foundMessages.md) = \['messages' => \[[message](../constructors/message.md)\], 'next_from_search_id' => [long](../types/long.md), \]; +

[$foundMessages](../constructors/foundMessages.md) = \['messages' => \[[message](../constructors/message.md)\], 'next_from_search_id' => [int64](../constructors/int64.md), \]; *** -

[$game](../constructors/game.md) = \['id' => [long](../types/long.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'text' => [string](../types/string.md), 'text_entities' => \[[textEntity](../constructors/textEntity.md)\], 'description' => [string](../types/string.md), 'photo' => [photo](../constructors/photo.md), 'animation' => [animation](../constructors/animation.md), \]; +

[$game](../constructors/game.md) = \['id' => [int64](../constructors/int64.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'text' => [string](../types/string.md), 'text_entities' => \[[textEntity](../constructors/textEntity.md)\], 'description' => [string](../types/string.md), 'photo' => [photo](../constructors/photo.md), 'animation' => [animation](../constructors/animation.md), \]; ***

[$gameHighScore](../constructors/gameHighScore.md) = \['position' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), \]; @@ -461,7 +467,7 @@ description: List of constructors

[$inlineQueryResultVoice](../constructors/inlineQueryResultVoice.md) = \['id' => [string](../types/string.md), 'voice' => [voice](../constructors/voice.md), 'title' => [string](../types/string.md), \]; *** -

[$inlineQueryResults](../constructors/inlineQueryResults.md) = \['inline_query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'results' => \[[InlineQueryResult](../types/InlineQueryResult.md)\], 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]; +

[$inlineQueryResults](../constructors/inlineQueryResults.md) = \['inline_query_id' => [int64](../constructors/int64.md), 'next_offset' => [string](../types/string.md), 'results' => \[[InlineQueryResult](../types/InlineQueryResult.md)\], 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]; ***

[$inputCredentialsNew](../constructors/inputCredentialsNew.md) = \['data' => [string](../types/string.md), 'allow_save' => [Bool](../types/Bool.md), \]; @@ -521,16 +527,16 @@ description: List of constructors

[$inputInlineQueryResultVoice](../constructors/inputInlineQueryResultVoice.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'voice_url' => [string](../types/string.md), 'voice_duration' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]; *** -

[$inputMessageAnimation](../constructors/inputMessageAnimation.md) = \['animation' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \]; +

[$inputMessageAnimation](../constructors/inputMessageAnimation.md) = \['animation' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \]; *** -

[$inputMessageAudio](../constructors/inputMessageAudio.md) = \['audio' => [InputFile](../types/InputFile.md), 'album_cover_thumb' => [InputThumb](../types/InputThumb.md), 'duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'caption' => [string](../types/string.md), \]; +

[$inputMessageAudio](../constructors/inputMessageAudio.md) = \['audio' => [InputFile](../types/InputFile.md), 'album_cover_thumb' => [inputThumb](../constructors/inputThumb.md), 'duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'caption' => [string](../types/string.md), \]; ***

[$inputMessageContact](../constructors/inputMessageContact.md) = \['contact' => [contact](../constructors/contact.md), \]; *** -

[$inputMessageDocument](../constructors/inputMessageDocument.md) = \['document' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'caption' => [string](../types/string.md), \]; +

[$inputMessageDocument](../constructors/inputMessageDocument.md) = \['document' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'caption' => [string](../types/string.md), \]; ***

[$inputMessageForwarded](../constructors/inputMessageForwarded.md) = \['from_chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'in_game_share' => [Bool](../types/Bool.md), \]; @@ -545,10 +551,10 @@ description: List of constructors

[$inputMessageLocation](../constructors/inputMessageLocation.md) = \['location' => [location](../constructors/location.md), \]; *** -

[$inputMessagePhoto](../constructors/inputMessagePhoto.md) = \['photo' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), 'ttl' => [int](../types/int.md), \]; +

[$inputMessagePhoto](../constructors/inputMessagePhoto.md) = \['photo' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), 'ttl' => [int](../types/int.md), \]; *** -

[$inputMessageSticker](../constructors/inputMessageSticker.md) = \['sticker' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; +

[$inputMessageSticker](../constructors/inputMessageSticker.md) = \['sticker' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; ***

[$inputMessageText](../constructors/inputMessageText.md) = \['text' => [string](../types/string.md), 'disable_web_page_preview' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'entities' => \[[textEntity](../constructors/textEntity.md)\], 'parse_mode' => [TextParseMode](../types/TextParseMode.md), \]; @@ -557,10 +563,10 @@ description: List of constructors

[$inputMessageVenue](../constructors/inputMessageVenue.md) = \['venue' => [venue](../constructors/venue.md), \]; *** -

[$inputMessageVideo](../constructors/inputMessageVideo.md) = \['video' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), 'ttl' => [int](../types/int.md), \]; +

[$inputMessageVideo](../constructors/inputMessageVideo.md) = \['video' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), 'ttl' => [int](../types/int.md), \]; *** -

[$inputMessageVideoNote](../constructors/inputMessageVideoNote.md) = \['video_note' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'duration' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; +

[$inputMessageVideoNote](../constructors/inputMessageVideoNote.md) = \['video_note' => [InputFile](../types/InputFile.md), 'thumb' => [inputThumb](../constructors/inputThumb.md), 'duration' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; ***

[$inputMessageVoice](../constructors/inputMessageVoice.md) = \['voice' => [InputFile](../types/InputFile.md), 'duration' => [int](../types/int.md), 'waveform' => [bytes](../types/bytes.md), 'caption' => [string](../types/string.md), \]; @@ -569,10 +575,7 @@ description: List of constructors

[$inputSticker](../constructors/inputSticker.md) = \['png_sticker' => [InputFile](../types/InputFile.md), 'emojis' => [string](../types/string.md), 'mask_position' => [maskPosition](../constructors/maskPosition.md), \]; *** -

[$inputThumbGenerated](../constructors/inputThumbGenerated.md) = \['original_path' => [string](../types/string.md), 'conversion' => [string](../types/string.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; - -*** -

[$inputThumbLocal](../constructors/inputThumbLocal.md) = \['path' => [string](../types/string.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; +

[$inputThumb](../constructors/inputThumb.md) = \['thumb' => [InputFile](../types/InputFile.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; ***

[$invoice](../constructors/invoice.md) = \['currency' => [string](../types/string.md), 'prices' => \[[labeledPrice](../constructors/labeledPrice.md)\], 'is_test' => [Bool](../types/Bool.md), 'need_name' => [Bool](../types/Bool.md), 'need_phone_number' => [Bool](../types/Bool.md), 'need_email' => [Bool](../types/Bool.md), 'need_shipping_address' => [Bool](../types/Bool.md), 'is_flexible' => [Bool](../types/Bool.md), \]; @@ -608,7 +611,7 @@ description: List of constructors

[$maskPosition](../constructors/maskPosition.md) = \['point' => [int](../types/int.md), 'x_shift' => [double](../types/double.md), 'y_shift' => [double](../types/double.md), 'scale' => [double](../types/double.md), \]; *** -

[$message](../constructors/message.md) = \['id' => [int53](../types/int53.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'send_state' => [MessageSendState](../types/MessageSendState.md), 'can_be_edited' => [Bool](../types/Bool.md), 'can_be_forwarded' => [Bool](../types/Bool.md), 'can_be_deleted_only_for_self' => [Bool](../types/Bool.md), 'can_be_deleted_for_everyone' => [Bool](../types/Bool.md), 'is_post' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'forward_info' => [MessageForwardInfo](../types/MessageForwardInfo.md), 'reply_to_message_id' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), 'ttl_expires_in' => [double](../types/double.md), 'via_bot_user_id' => [int](../types/int.md), 'author_signature' => [string](../types/string.md), 'views' => [int](../types/int.md), 'content' => [MessageContent](../types/MessageContent.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; +

[$message](../constructors/message.md) = \['id' => [int53](../types/int53.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'send_state' => [MessageSendState](../types/MessageSendState.md), 'can_be_edited' => [Bool](../types/Bool.md), 'can_be_forwarded' => [Bool](../types/Bool.md), 'can_be_deleted_only_for_self' => [Bool](../types/Bool.md), 'can_be_deleted_for_everyone' => [Bool](../types/Bool.md), 'is_post' => [Bool](../types/Bool.md), 'contains_unread_mention' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'forward_info' => [MessageForwardInfo](../types/MessageForwardInfo.md), 'reply_to_message_id' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), 'ttl_expires_in' => [double](../types/double.md), 'via_bot_user_id' => [int](../types/int.md), 'author_signature' => [string](../types/string.md), 'views' => [int](../types/int.md), 'content' => [MessageContent](../types/MessageContent.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; ***

[$messageAnimation](../constructors/messageAnimation.md) = \['animation' => [animation](../constructors/animation.md), 'caption' => [string](../types/string.md), \]; @@ -674,7 +677,7 @@ description: List of constructors

[$messageGame](../constructors/messageGame.md) = \['game' => [game](../constructors/game.md), \]; *** -

[$messageGameScore](../constructors/messageGameScore.md) = \['game_message_id' => [int53](../types/int53.md), 'game_id' => [long](../types/long.md), 'score' => [int](../types/int.md), \]; +

[$messageGameScore](../constructors/messageGameScore.md) = \['game_message_id' => [int53](../types/int53.md), 'game_id' => [int64](../constructors/int64.md), 'score' => [int](../types/int.md), \]; ***

[$messageGroupChatCreate](../constructors/messageGroupChatCreate.md) = \['title' => [string](../types/string.md), 'member_user_ids' => \[[int](../types/int.md)\], \]; @@ -881,7 +884,7 @@ description: List of constructors

[$paymentsProviderStripe](../constructors/paymentsProviderStripe.md) = \['publishable_key' => [string](../types/string.md), 'need_country' => [Bool](../types/Bool.md), 'need_zip' => [Bool](../types/Bool.md), 'need_cardholder_name' => [Bool](../types/Bool.md), \]; *** -

[$photo](../constructors/photo.md) = \['id' => [long](../types/long.md), 'has_stickers' => [Bool](../types/Bool.md), 'sizes' => \[[photoSize](../constructors/photoSize.md)\], \]; +

[$photo](../constructors/photo.md) = \['id' => [int64](../constructors/int64.md), 'has_stickers' => [Bool](../types/Bool.md), 'sizes' => \[[photoSize](../constructors/photoSize.md)\], \]; ***

[$photoSize](../constructors/photoSize.md) = \['type' => [string](../types/string.md), 'photo' => [file](../constructors/file.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \]; @@ -917,7 +920,7 @@ description: List of constructors

[$privacyRules](../constructors/privacyRules.md) = \['rules' => \[[PrivacyRule](../types/PrivacyRule.md)\], \]; *** -

[$profilePhoto](../constructors/profilePhoto.md) = \['id' => [long](../types/long.md), 'small' => [file](../constructors/file.md), 'big' => [file](../constructors/file.md), \]; +

[$profilePhoto](../constructors/profilePhoto.md) = \['id' => [int64](../constructors/int64.md), 'small' => [file](../constructors/file.md), 'big' => [file](../constructors/file.md), \]; ***

[$proxyEmpty](../constructors/proxyEmpty.md) = \[\]; @@ -991,6 +994,9 @@ description: List of constructors ***

[$searchMessagesFilterEmpty](../constructors/searchMessagesFilterEmpty.md) = \[\]; +*** +

[$searchMessagesFilterMention](../constructors/searchMessagesFilterMention.md) = \[\]; + ***

[$searchMessagesFilterMissedCall](../constructors/searchMessagesFilterMissedCall.md) = \[\]; @@ -1000,6 +1006,9 @@ description: List of constructors ***

[$searchMessagesFilterPhotoAndVideo](../constructors/searchMessagesFilterPhotoAndVideo.md) = \[\]; +*** +

[$searchMessagesFilterUnreadMention](../constructors/searchMessagesFilterUnreadMention.md) = \[\]; + ***

[$searchMessagesFilterUrl](../constructors/searchMessagesFilterUrl.md) = \[\]; @@ -1019,7 +1028,7 @@ description: List of constructors

[$secretChat](../constructors/secretChat.md) = \['id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'state' => [int](../types/int.md), 'is_outbound' => [Bool](../types/Bool.md), 'ttl' => [int](../types/int.md), 'key_hash' => [bytes](../types/bytes.md), 'layer' => [int](../types/int.md), \]; *** -

[$session](../constructors/session.md) = \['id' => [long](../types/long.md), 'is_current' => [Bool](../types/Bool.md), 'app_id' => [int](../types/int.md), 'app_name' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'is_official_app' => [Bool](../types/Bool.md), 'device_model' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'log_in_date' => [int](../types/int.md), 'last_active_date' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'country' => [string](../types/string.md), 'region' => [string](../types/string.md), \]; +

[$session](../constructors/session.md) = \['id' => [int64](../constructors/int64.md), 'is_current' => [Bool](../types/Bool.md), 'app_id' => [int](../types/int.md), 'app_name' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'is_official_app' => [Bool](../types/Bool.md), 'device_model' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'log_in_date' => [int](../types/int.md), 'last_active_date' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'country' => [string](../types/string.md), 'region' => [string](../types/string.md), \]; ***

[$sessions](../constructors/sessions.md) = \['sessions' => \[[session](../constructors/session.md)\], \]; @@ -1031,16 +1040,16 @@ description: List of constructors

[$shippingOption](../constructors/shippingOption.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'prices' => \[[labeledPrice](../constructors/labeledPrice.md)\], \]; *** -

[$sticker](../constructors/sticker.md) = \['set_id' => [long](../types/long.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'emoji' => [string](../types/string.md), 'is_mask' => [Bool](../types/Bool.md), 'mask_position' => [maskPosition](../constructors/maskPosition.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'sticker' => [file](../constructors/file.md), \]; +

[$sticker](../constructors/sticker.md) = \['set_id' => [int64](../constructors/int64.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'emoji' => [string](../types/string.md), 'is_mask' => [Bool](../types/Bool.md), 'mask_position' => [maskPosition](../constructors/maskPosition.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'sticker' => [file](../constructors/file.md), \]; ***

[$stickerEmojis](../constructors/stickerEmojis.md) = \['emojis' => \[[string](../types/string.md)\], \]; *** -

[$stickerSet](../constructors/stickerSet.md) = \['id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), 'is_official' => [Bool](../types/Bool.md), 'is_masks' => [Bool](../types/Bool.md), 'is_viewed' => [Bool](../types/Bool.md), 'stickers' => \[[sticker](../constructors/sticker.md)\], 'emojis' => \[[stickerEmojis](../constructors/stickerEmojis.md)\], \]; +

[$stickerSet](../constructors/stickerSet.md) = \['id' => [int64](../constructors/int64.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), 'is_official' => [Bool](../types/Bool.md), 'is_masks' => [Bool](../types/Bool.md), 'is_viewed' => [Bool](../types/Bool.md), 'stickers' => \[[sticker](../constructors/sticker.md)\], 'emojis' => \[[stickerEmojis](../constructors/stickerEmojis.md)\], \]; *** -

[$stickerSetInfo](../constructors/stickerSetInfo.md) = \['id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), 'is_official' => [Bool](../types/Bool.md), 'is_masks' => [Bool](../types/Bool.md), 'is_viewed' => [Bool](../types/Bool.md), 'size' => [int](../types/int.md), 'covers' => \[[sticker](../constructors/sticker.md)\], \]; +

[$stickerSetInfo](../constructors/stickerSetInfo.md) = \['id' => [int64](../constructors/int64.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), 'is_official' => [Bool](../types/Bool.md), 'is_masks' => [Bool](../types/Bool.md), 'is_viewed' => [Bool](../types/Bool.md), 'size' => [int](../types/int.md), 'covers' => \[[sticker](../constructors/sticker.md)\], \]; ***

[$stickerSets](../constructors/stickerSets.md) = \['total_count' => [int](../types/int.md), 'sets' => \[[stickerSetInfo](../constructors/stickerSetInfo.md)\], \]; @@ -1087,6 +1096,9 @@ description: List of constructors ***

[$text](../constructors/text.md) = \['text' => [string](../types/string.md), \]; +*** +

[$textEntities](../constructors/textEntities.md) = \['entities' => \[[textEntity](../constructors/textEntity.md)\], \]; + ***

[$textEntity](../constructors/textEntity.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), 'type' => [TextEntityType](../types/TextEntityType.md), \]; @@ -1163,13 +1175,13 @@ description: List of constructors

[$updateChannelFull](../constructors/updateChannelFull.md) = \['channel_id' => [int](../types/int.md), 'channel_full' => [channelFull](../constructors/channelFull.md), \]; *** -

[$updateChatDraftMessage](../constructors/updateChatDraftMessage.md) = \['chat_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \]; +

[$updateChatDraftMessage](../constructors/updateChatDraftMessage.md) = \['chat_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), 'order' => [int64](../constructors/int64.md), \]; *** -

[$updateChatIsPinned](../constructors/updateChatIsPinned.md) = \['chat_id' => [int53](../types/int53.md), 'is_pinned' => [Bool](../types/Bool.md), \]; +

[$updateChatIsPinned](../constructors/updateChatIsPinned.md) = \['chat_id' => [int53](../types/int53.md), 'is_pinned' => [Bool](../types/Bool.md), 'order' => [int64](../constructors/int64.md), \]; *** -

[$updateChatOrder](../constructors/updateChatOrder.md) = \['chat_id' => [int53](../types/int53.md), 'order' => [long](../types/long.md), \]; +

[$updateChatOrder](../constructors/updateChatOrder.md) = \['chat_id' => [int53](../types/int53.md), 'order' => [int64](../constructors/int64.md), \]; ***

[$updateChatPhoto](../constructors/updateChatPhoto.md) = \['chat_id' => [int53](../types/int53.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), \]; @@ -1187,7 +1199,10 @@ description: List of constructors

[$updateChatTitle](../constructors/updateChatTitle.md) = \['chat_id' => [int53](../types/int53.md), 'title' => [string](../types/string.md), \]; *** -

[$updateChatTopMessage](../constructors/updateChatTopMessage.md) = \['chat_id' => [int53](../types/int53.md), 'top_message' => [message](../constructors/message.md), \]; +

[$updateChatTopMessage](../constructors/updateChatTopMessage.md) = \['chat_id' => [int53](../types/int53.md), 'top_message' => [message](../constructors/message.md), 'order' => [int64](../constructors/int64.md), \]; + +*** +

[$updateChatUnreadMentionCount](../constructors/updateChatUnreadMentionCount.md) = \['chat_id' => [int53](../types/int53.md), 'unread_mention_count' => [int](../types/int.md), \]; ***

[$updateConnectionState](../constructors/updateConnectionState.md) = \['state' => [ConnectionState](../types/ConnectionState.md), \]; @@ -1195,6 +1210,9 @@ description: List of constructors ***

[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]; +*** +

[$updateFavoriteStickers](../constructors/updateFavoriteStickers.md) = \['sticker_ids' => \[[int](../types/int.md)\], \]; + ***

[$updateFile](../constructors/updateFile.md) = \['file' => [file](../constructors/file.md), \]; @@ -1205,7 +1223,7 @@ description: List of constructors

[$updateFileGenerationProgress](../constructors/updateFileGenerationProgress.md) = \['file_id' => [int](../types/int.md), 'size' => [int](../types/int.md), 'ready' => [int](../types/int.md), \]; *** -

[$updateFileGenerationStart](../constructors/updateFileGenerationStart.md) = \['generation_id' => [long](../types/long.md), 'original_path' => [string](../types/string.md), 'destination_path' => [string](../types/string.md), 'conversion' => [string](../types/string.md), \]; +

[$updateFileGenerationStart](../constructors/updateFileGenerationStart.md) = \['generation_id' => [int64](../constructors/int64.md), 'original_path' => [string](../types/string.md), 'destination_path' => [string](../types/string.md), 'conversion' => [string](../types/string.md), \]; ***

[$updateFileProgress](../constructors/updateFileProgress.md) = \['file_id' => [int](../types/int.md), 'size' => [int](../types/int.md), 'ready' => [int](../types/int.md), \]; @@ -1217,7 +1235,7 @@ description: List of constructors

[$updateGroupFull](../constructors/updateGroupFull.md) = \['group_id' => [int](../types/int.md), 'group_full' => [groupFull](../constructors/groupFull.md), \]; *** -

[$updateInstalledStickerSets](../constructors/updateInstalledStickerSets.md) = \['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../types/long.md)\], \]; +

[$updateInstalledStickerSets](../constructors/updateInstalledStickerSets.md) = \['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]; ***

[$updateMessageContent](../constructors/updateMessageContent.md) = \['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'new_content' => [MessageContent](../types/MessageContent.md), \]; @@ -1225,6 +1243,9 @@ description: List of constructors ***

[$updateMessageEdited](../constructors/updateMessageEdited.md) = \['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'edit_date' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; +*** +

[$updateMessageMentionRead](../constructors/updateMessageMentionRead.md) = \['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'unread_mention_count' => [int](../types/int.md), \]; + ***

[$updateMessageSendAcknowledged](../constructors/updateMessageSendAcknowledged.md) = \['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]; @@ -1238,7 +1259,7 @@ description: List of constructors

[$updateMessageViews](../constructors/updateMessageViews.md) = \['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'views' => [int](../types/int.md), \]; *** -

[$updateNewCallbackQuery](../constructors/updateNewCallbackQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'chat_instance' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]; +

[$updateNewCallbackQuery](../constructors/updateNewCallbackQuery.md) = \['id' => [int64](../constructors/int64.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'chat_instance' => [int64](../constructors/int64.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]; ***

[$updateNewChat](../constructors/updateNewChat.md) = \['chat' => [chat](../constructors/chat.md), \]; @@ -1250,22 +1271,22 @@ description: List of constructors

[$updateNewCustomEvent](../constructors/updateNewCustomEvent.md) = \['event' => [string](../types/string.md), \]; *** -

[$updateNewCustomQuery](../constructors/updateNewCustomQuery.md) = \['id' => [long](../types/long.md), 'data' => [string](../types/string.md), 'timeout' => [int](../types/int.md), \]; +

[$updateNewCustomQuery](../constructors/updateNewCustomQuery.md) = \['id' => [int64](../constructors/int64.md), 'data' => [string](../types/string.md), 'timeout' => [int](../types/int.md), \]; *** -

[$updateNewInlineCallbackQuery](../constructors/updateNewInlineCallbackQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'inline_message_id' => [string](../types/string.md), 'chat_instance' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]; +

[$updateNewInlineCallbackQuery](../constructors/updateNewInlineCallbackQuery.md) = \['id' => [int64](../constructors/int64.md), 'sender_user_id' => [int](../types/int.md), 'inline_message_id' => [string](../types/string.md), 'chat_instance' => [int64](../constructors/int64.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]; *** -

[$updateNewInlineQuery](../constructors/updateNewInlineQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]; +

[$updateNewInlineQuery](../constructors/updateNewInlineQuery.md) = \['id' => [int64](../constructors/int64.md), 'sender_user_id' => [int](../types/int.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]; ***

[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [message](../constructors/message.md), 'disable_notification' => [Bool](../types/Bool.md), 'contains_mention' => [Bool](../types/Bool.md), \]; *** -

[$updateNewPreCheckoutQuery](../constructors/updateNewPreCheckoutQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'currency' => [string](../types/string.md), 'total_amount' => [int53](../types/int53.md), 'invoice_payload' => [bytes](../types/bytes.md), 'shipping_option_id' => [string](../types/string.md), 'order_info' => [orderInfo](../constructors/orderInfo.md), \]; +

[$updateNewPreCheckoutQuery](../constructors/updateNewPreCheckoutQuery.md) = \['id' => [int64](../constructors/int64.md), 'sender_user_id' => [int](../types/int.md), 'currency' => [string](../types/string.md), 'total_amount' => [int53](../types/int53.md), 'invoice_payload' => [bytes](../types/bytes.md), 'shipping_option_id' => [string](../types/string.md), 'order_info' => [orderInfo](../constructors/orderInfo.md), \]; *** -

[$updateNewShippingQuery](../constructors/updateNewShippingQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'invoice_payload' => [string](../types/string.md), 'shipping_address' => [shippingAddress](../constructors/shippingAddress.md), \]; +

[$updateNewShippingQuery](../constructors/updateNewShippingQuery.md) = \['id' => [int64](../constructors/int64.md), 'sender_user_id' => [int](../types/int.md), 'invoice_payload' => [string](../types/string.md), 'shipping_address' => [shippingAddress](../constructors/shippingAddress.md), \]; ***

[$updateNotificationSettings](../constructors/updateNotificationSettings.md) = \['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \]; diff --git a/docs/TD_docs/constructors/inlineQueryResults.md b/docs/TD_docs/constructors/inlineQueryResults.md index 9dcdf83d..e1a79187 100644 --- a/docs/TD_docs/constructors/inlineQueryResults.md +++ b/docs/TD_docs/constructors/inlineQueryResults.md @@ -13,7 +13,7 @@ Represents results of the inline query. Use sendInlineQueryResultMessage to send | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|inline\_query\_id|[long](../types/long.md) | Yes|Unique identifier of the inline query| +|inline\_query\_id|[int64](../constructors/int64.md) | Yes|Unique identifier of the inline query| |next\_offset|[string](../types/string.md) | Yes|Offset for the next request. If it is empty, there is no more results| |results|Array of [InlineQueryResult](../types/InlineQueryResult.md) | Yes|Results of the query| |switch\_pm\_text|[string](../types/string.md) | Yes|If non-empty, this text should be shown on the button, which opens private chat with the bot and sends bot start message with parameter switch_pm_parameter| diff --git a/docs/TD_docs/constructors/inputFileGenerated.md b/docs/TD_docs/constructors/inputFileGenerated.md index f8f8f145..369d0dd3 100644 --- a/docs/TD_docs/constructors/inputFileGenerated.md +++ b/docs/TD_docs/constructors/inputFileGenerated.md @@ -15,7 +15,7 @@ File generated by the client |----------|---------------|----------|-------------| |original\_path|[string](../types/string.md) | Yes|Local path to a file from which the file is generated, may be empty if there is no such file| |conversion|[string](../types/string.md) | Yes|String specifying conversion applied to the original file, should be persistent across application restart| -|expected\_size|[int](../types/int.md) | Yes|Expected size of the generated file| +|expected\_size|[int](../types/int.md) | Yes|Expected size of the generated file, 0 if unknown| diff --git a/docs/TD_docs/constructors/inputMessageAnimation.md b/docs/TD_docs/constructors/inputMessageAnimation.md index 881b5e5a..152870e3 100644 --- a/docs/TD_docs/constructors/inputMessageAnimation.md +++ b/docs/TD_docs/constructors/inputMessageAnimation.md @@ -14,7 +14,7 @@ Animation message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |animation|[InputFile](../types/InputFile.md) | Yes|Animation file to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Animation thumb, if available| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Animation thumb, if available| |duration|[int](../types/int.md) | Yes|Duration of the animation in seconds| |width|[int](../types/int.md) | Yes|Width of the animation, may be replaced by the server| |height|[int](../types/int.md) | Yes|Height of the animation, may be replaced by the server| diff --git a/docs/TD_docs/constructors/inputMessageAudio.md b/docs/TD_docs/constructors/inputMessageAudio.md index cc82dca2..bca39bfe 100644 --- a/docs/TD_docs/constructors/inputMessageAudio.md +++ b/docs/TD_docs/constructors/inputMessageAudio.md @@ -14,7 +14,7 @@ Audio message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |audio|[InputFile](../types/InputFile.md) | Yes|Audio file to send| -|album\_cover\_thumb|[InputThumb](../types/InputThumb.md) | Yes|Thumb of the album's cover, if available| +|album\_cover\_thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Thumb of the album's cover, if available| |duration|[int](../types/int.md) | Yes|Duration of the audio in seconds, may be replaced by the server| |title|[string](../types/string.md) | Yes|Title of the audio, 0-64 characters, may be replaced by the server| |performer|[string](../types/string.md) | Yes|Performer of the audio, 0-64 characters, may be replaced by the server| diff --git a/docs/TD_docs/constructors/inputMessageDocument.md b/docs/TD_docs/constructors/inputMessageDocument.md index 567f3050..217f9236 100644 --- a/docs/TD_docs/constructors/inputMessageDocument.md +++ b/docs/TD_docs/constructors/inputMessageDocument.md @@ -14,7 +14,7 @@ Document message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |document|[InputFile](../types/InputFile.md) | Yes|Document to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Document thumb, if available| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Document thumb, if available| |caption|[string](../types/string.md) | Yes|Document caption, 0-200 characters| diff --git a/docs/TD_docs/constructors/inputMessagePhoto.md b/docs/TD_docs/constructors/inputMessagePhoto.md index 9628c35d..acc1585f 100644 --- a/docs/TD_docs/constructors/inputMessagePhoto.md +++ b/docs/TD_docs/constructors/inputMessagePhoto.md @@ -14,7 +14,7 @@ Photo message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |photo|[InputFile](../types/InputFile.md) | Yes|Photo to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Photo thumb to send, is sent to the other party in secret chats only| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Photo thumb to send, is sent to the other party in secret chats only| |added\_sticker\_file\_ids|Array of [int](../types/int.md) | Yes|File identifiers of stickers added onto the photo| |width|[int](../types/int.md) | Yes|Photo width| |height|[int](../types/int.md) | Yes|Photo height| diff --git a/docs/TD_docs/constructors/inputMessageSticker.md b/docs/TD_docs/constructors/inputMessageSticker.md index 635cc650..c928ef15 100644 --- a/docs/TD_docs/constructors/inputMessageSticker.md +++ b/docs/TD_docs/constructors/inputMessageSticker.md @@ -14,7 +14,7 @@ Sticker message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |sticker|[InputFile](../types/InputFile.md) | Yes|Sticker to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Sticker thumb, if available| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Sticker thumb, if available| |width|[int](../types/int.md) | Yes|Sticker width| |height|[int](../types/int.md) | Yes|Sticker height| diff --git a/docs/TD_docs/constructors/inputMessageVideo.md b/docs/TD_docs/constructors/inputMessageVideo.md index 4c1eadff..97f64479 100644 --- a/docs/TD_docs/constructors/inputMessageVideo.md +++ b/docs/TD_docs/constructors/inputMessageVideo.md @@ -14,7 +14,7 @@ Video message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |video|[InputFile](../types/InputFile.md) | Yes|Video to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Video thumb, if available| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Video thumb, if available| |added\_sticker\_file\_ids|Array of [int](../types/int.md) | Yes|File identifiers of stickers added onto the video| |duration|[int](../types/int.md) | Yes|Duration of the video in seconds| |width|[int](../types/int.md) | Yes|Video width| diff --git a/docs/TD_docs/constructors/inputMessageVideoNote.md b/docs/TD_docs/constructors/inputMessageVideoNote.md index e0e54437..76b05147 100644 --- a/docs/TD_docs/constructors/inputMessageVideoNote.md +++ b/docs/TD_docs/constructors/inputMessageVideoNote.md @@ -14,7 +14,7 @@ Video note message | Name | Type | Required | Description | |----------|---------------|----------|-------------| |video\_note|[InputFile](../types/InputFile.md) | Yes|Video note to send| -|thumb|[InputThumb](../types/InputThumb.md) | Yes|Video thumb, if available| +|thumb|[inputThumb](../constructors/inputThumb.md) | Yes|Video thumb, if available| |duration|[int](../types/int.md) | Yes|Duration of the video in seconds| |length|[int](../types/int.md) | Yes|Video width and height, should be positive and not greater than 640| diff --git a/docs/TD_docs/constructors/inputThumbGenerated.md b/docs/TD_docs/constructors/inputThumb.md similarity index 50% rename from docs/TD_docs/constructors/inputThumbGenerated.md rename to docs/TD_docs/constructors/inputThumb.md index f73204ac..195a3bde 100644 --- a/docs/TD_docs/constructors/inputThumbGenerated.md +++ b/docs/TD_docs/constructors/inputThumb.md @@ -1,20 +1,19 @@ --- -title: inputThumbGenerated -description: Generated thumb, should be less than 200KB +title: inputThumb +description: Thumb to send along with a file, should be in jpeg format or webp format for stickers and less than 200KB in size --- -## Constructor: inputThumbGenerated +## Constructor: inputThumb [Back to constructors index](index.md) -Generated thumb, should be less than 200KB +Thumb to send along with a file, should be in jpeg format or webp format for stickers and less than 200KB in size ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|original\_path|[string](../types/string.md) | Yes|Path to the original file| -|conversion|[string](../types/string.md) | Yes|String specifying conversion applied to the original file, should be persistent across application restart| +|thumb|[InputFile](../types/InputFile.md) | Yes|Thumb file to send, sending thumbs by file_id is currently not supported| |width|[int](../types/int.md) | Yes|Thumb width, usually shouldn't excceed 90. Use 0 if unknown| |height|[int](../types/int.md) | Yes|Thumb height, usually shouldn't excceed 90. Use 0 if unknown| diff --git a/docs/TD_docs/constructors/inputThumbLocal.md b/docs/TD_docs/constructors/inputThumbLocal.md deleted file mode 100644 index 1bff5916..00000000 --- a/docs/TD_docs/constructors/inputThumbLocal.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: inputThumbLocal -description: Local file with the thumb ---- -## Constructor: inputThumbLocal -[Back to constructors index](index.md) - - - -Local file with the thumb - -### Attributes: - -| Name | Type | Required | Description | -|----------|---------------|----------|-------------| -|path|[string](../types/string.md) | Yes|Path to the file with the thumb, file should be less than 200KB| -|width|[int](../types/int.md) | Yes|Thumb width, usually shouldn't excceed 90. Use 0 if unknown| -|height|[int](../types/int.md) | Yes|Thumb height, usually shouldn't excceed 90. Use 0 if unknown| - - - -### Type: [InputThumb](../types/InputThumb.md) - - diff --git a/docs/TD_docs/constructors/message.md b/docs/TD_docs/constructors/message.md index 50afad5e..d7eae5ae 100644 --- a/docs/TD_docs/constructors/message.md +++ b/docs/TD_docs/constructors/message.md @@ -22,6 +22,7 @@ Describes message |can\_be\_deleted\_only\_for\_self|[Bool](../types/Bool.md) | Yes|True, if message can be deleted only for self, other users will continue to see it| |can\_be\_deleted\_for\_everyone|[Bool](../types/Bool.md) | Yes|True, if message can be deleted for everyone| |is\_post|[Bool](../types/Bool.md) | Yes|True, if message is channel post. All messages to broadcast channels are posts, all other messages are not posts| +|contains\_unread\_mention|[Bool](../types/Bool.md) | Yes|True, if message contains unread mention of the current user| |date|[int](../types/int.md) | Yes|Date when message was sent, unix time| |edit\_date|[int](../types/int.md) | Yes|Date when message was edited last time, unix time| |forward\_info|[MessageForwardInfo](../types/MessageForwardInfo.md) | Yes|Information about initial message sender, nullable| diff --git a/docs/TD_docs/constructors/messageGameScore.md b/docs/TD_docs/constructors/messageGameScore.md index 0b2a620d..8d564b7d 100644 --- a/docs/TD_docs/constructors/messageGameScore.md +++ b/docs/TD_docs/constructors/messageGameScore.md @@ -14,7 +14,7 @@ New high score was achieved in a game | Name | Type | Required | Description | |----------|---------------|----------|-------------| |game\_message\_id|[int53](../types/int53.md) | Yes|Identifier of the message with the game, can be identifier of the deleted message| -|game\_id|[long](../types/long.md) | Yes|Identifier of the game, may be different from the games presented in the message with the game| +|game\_id|[int64](../constructors/int64.md) | Yes|Identifier of the game, may be different from the games presented in the message with the game| |score|[int](../types/int.md) | Yes|New score| diff --git a/docs/TD_docs/constructors/photo.md b/docs/TD_docs/constructors/photo.md index 68a6991f..0a951c50 100644 --- a/docs/TD_docs/constructors/photo.md +++ b/docs/TD_docs/constructors/photo.md @@ -13,7 +13,7 @@ Describes photo | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Photo identifier, 0 for deleted photo| +|id|[int64](../constructors/int64.md) | Yes|Photo identifier, 0 for deleted photo| |has\_stickers|[Bool](../types/Bool.md) | Yes|True, if some stickers was added to the photo| |sizes|Array of [photoSize](../constructors/photoSize.md) | Yes|Available variants of photo of different sizes| diff --git a/docs/TD_docs/constructors/profilePhoto.md b/docs/TD_docs/constructors/profilePhoto.md index a0711ef2..59cc6195 100644 --- a/docs/TD_docs/constructors/profilePhoto.md +++ b/docs/TD_docs/constructors/profilePhoto.md @@ -13,7 +13,7 @@ Describes user profile photo | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Photo identifier, 0 for empty photo. Can be used to find photo in list of userProfilePhotos| +|id|[int64](../constructors/int64.md) | Yes|Photo identifier, 0 for empty photo. Can be used to find photo in list of userProfilePhotos| |small|[file](../constructors/file.md) | Yes|Small (160x160) user profile photo| |big|[file](../constructors/file.md) | Yes|Big (640x640) user profile photo| diff --git a/docs/TD_docs/constructors/searchMessagesFilterMention.md b/docs/TD_docs/constructors/searchMessagesFilterMention.md new file mode 100644 index 00000000..28573896 --- /dev/null +++ b/docs/TD_docs/constructors/searchMessagesFilterMention.md @@ -0,0 +1,21 @@ +--- +title: searchMessagesFilterMention +description: Return only messages with mentions of current logged in user or which are replies to his messages +--- +## Constructor: searchMessagesFilterMention +[Back to constructors index](index.md) + + + +Return only messages with mentions of current logged in user or which are replies to his messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| + + + +### Type: [SearchMessagesFilter](../types/SearchMessagesFilter.md) + + diff --git a/docs/TD_docs/constructors/searchMessagesFilterUnreadMention.md b/docs/TD_docs/constructors/searchMessagesFilterUnreadMention.md new file mode 100644 index 00000000..333a5949 --- /dev/null +++ b/docs/TD_docs/constructors/searchMessagesFilterUnreadMention.md @@ -0,0 +1,21 @@ +--- +title: searchMessagesFilterUnreadMention +description: Return only messages with unread mentions of current logged in user or which are replies to his messages. When this filter is used result can't be additionally filtered by a query or a sender user +--- +## Constructor: searchMessagesFilterUnreadMention +[Back to constructors index](index.md) + + + +Return only messages with unread mentions of current logged in user or which are replies to his messages. When this filter is used result can't be additionally filtered by a query or a sender user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| + + + +### Type: [SearchMessagesFilter](../types/SearchMessagesFilter.md) + + diff --git a/docs/TD_docs/constructors/session.md b/docs/TD_docs/constructors/session.md index 6aa4e0e3..5b991dcc 100644 --- a/docs/TD_docs/constructors/session.md +++ b/docs/TD_docs/constructors/session.md @@ -13,7 +13,7 @@ Contains information about one session in some application used by the user | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Session identifier| +|id|[int64](../constructors/int64.md) | Yes|Session identifier| |is\_current|[Bool](../types/Bool.md) | Yes|True, if it is current session| |app\_id|[int](../types/int.md) | Yes|Application identifier, provided by the application| |app\_name|[string](../types/string.md) | Yes|Name of the application, provided by the application| diff --git a/docs/TD_docs/constructors/sticker.md b/docs/TD_docs/constructors/sticker.md index 4c0fbffe..b9cf395a 100644 --- a/docs/TD_docs/constructors/sticker.md +++ b/docs/TD_docs/constructors/sticker.md @@ -13,7 +13,7 @@ Describes sticker | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|set\_id|[long](../types/long.md) | Yes|Identifier of sticker set to which the sticker belongs or 0 if none| +|set\_id|[int64](../constructors/int64.md) | Yes|Identifier of sticker set to which the sticker belongs or 0 if none| |width|[int](../types/int.md) | Yes|Sticker width as defined by sender| |height|[int](../types/int.md) | Yes|Sticker height as defined by sender| |emoji|[string](../types/string.md) | Yes|Emoji corresponding to the sticker| diff --git a/docs/TD_docs/constructors/stickerSet.md b/docs/TD_docs/constructors/stickerSet.md index 2085c41e..d7d75170 100644 --- a/docs/TD_docs/constructors/stickerSet.md +++ b/docs/TD_docs/constructors/stickerSet.md @@ -13,7 +13,7 @@ Represents sticker set | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Sticker set identifier| +|id|[int64](../constructors/int64.md) | Yes|Sticker set identifier| |title|[string](../types/string.md) | Yes|Title of the sticker set| |name|[string](../types/string.md) | Yes|Name of the sticker set| |is\_installed|[Bool](../types/Bool.md) | Yes|True if sticker set is installed by logged in user| diff --git a/docs/TD_docs/constructors/stickerSetInfo.md b/docs/TD_docs/constructors/stickerSetInfo.md index 1d6fc78b..249c6e90 100644 --- a/docs/TD_docs/constructors/stickerSetInfo.md +++ b/docs/TD_docs/constructors/stickerSetInfo.md @@ -13,7 +13,7 @@ Represents short information about sticker set | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Sticker set identifier| +|id|[int64](../constructors/int64.md) | Yes|Sticker set identifier| |title|[string](../types/string.md) | Yes|Title of the sticker set| |name|[string](../types/string.md) | Yes|Name of the sticker set| |is\_installed|[Bool](../types/Bool.md) | Yes|True if sticker set is installed by logged in user| diff --git a/docs/TD_docs/constructors/textEntities.md b/docs/TD_docs/constructors/textEntities.md new file mode 100644 index 00000000..55820e57 --- /dev/null +++ b/docs/TD_docs/constructors/textEntities.md @@ -0,0 +1,22 @@ +--- +title: textEntities +description: Contains a list ot text entities +--- +## Constructor: textEntities +[Back to constructors index](index.md) + + + +Contains a list ot text entities + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|entities|Array of [textEntity](../constructors/textEntity.md) | Yes|The entities| + + + +### Type: [TextEntities](../types/TextEntities.md) + + diff --git a/docs/TD_docs/constructors/updateChatDraftMessage.md b/docs/TD_docs/constructors/updateChatDraftMessage.md index b8f327b0..51ddcfee 100644 --- a/docs/TD_docs/constructors/updateChatDraftMessage.md +++ b/docs/TD_docs/constructors/updateChatDraftMessage.md @@ -15,6 +15,7 @@ Chat draft has changed. Be aware that the update may come in the currently open |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |draft\_message|[draftMessage](../constructors/draftMessage.md) | Yes|New chat draft_message, nullable| +|order|[int64](../constructors/int64.md) | Yes|New value of the chat order| diff --git a/docs/TD_docs/constructors/updateChatIsPinned.md b/docs/TD_docs/constructors/updateChatIsPinned.md index 00bce6b4..06a85836 100644 --- a/docs/TD_docs/constructors/updateChatIsPinned.md +++ b/docs/TD_docs/constructors/updateChatIsPinned.md @@ -15,6 +15,7 @@ Chat was pinned or unpinned |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |is\_pinned|[Bool](../types/Bool.md) | Yes|New value of is_pinned| +|order|[int64](../constructors/int64.md) | Yes|New value of the chat order| diff --git a/docs/TD_docs/constructors/updateChatOrder.md b/docs/TD_docs/constructors/updateChatOrder.md index 38a2106e..2de0feaa 100644 --- a/docs/TD_docs/constructors/updateChatOrder.md +++ b/docs/TD_docs/constructors/updateChatOrder.md @@ -1,20 +1,20 @@ --- title: updateChatOrder -description: Order of the chat in the chat list has changed +description: Order of the chat in the chat list has changed. Instead of that update updateChatTopMessage, updateChatIsPinned or updateChatDraftMessage may be sent --- ## Constructor: updateChatOrder [Back to constructors index](index.md) -Order of the chat in the chat list has changed +Order of the chat in the chat list has changed. Instead of that update updateChatTopMessage, updateChatIsPinned or updateChatDraftMessage may be sent ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| -|order|[long](../types/long.md) | Yes|New value of the order| +|order|[int64](../constructors/int64.md) | Yes|New value of the order| diff --git a/docs/TD_docs/constructors/updateChatReadInbox.md b/docs/TD_docs/constructors/updateChatReadInbox.md index 86c31fc5..067b7063 100644 --- a/docs/TD_docs/constructors/updateChatReadInbox.md +++ b/docs/TD_docs/constructors/updateChatReadInbox.md @@ -15,7 +15,7 @@ Some incoming messages was read |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |last\_read\_inbox\_message\_id|[int53](../types/int53.md) | Yes|Identifier of last read incoming message| -|unread\_count|[int](../types/int.md) | Yes|Number of unread messages left in chat| +|unread\_count|[int](../types/int.md) | Yes|Number of unread messages left in the chat| diff --git a/docs/TD_docs/constructors/updateChatTopMessage.md b/docs/TD_docs/constructors/updateChatTopMessage.md index 4c554119..886d5a23 100644 --- a/docs/TD_docs/constructors/updateChatTopMessage.md +++ b/docs/TD_docs/constructors/updateChatTopMessage.md @@ -15,6 +15,7 @@ Top message of the chat has changed. If top_message is null then top message in |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |top\_message|[message](../constructors/message.md) | Yes|New top message of the chat, nullable| +|order|[int64](../constructors/int64.md) | Yes|New value of the chat order| diff --git a/docs/TD_docs/constructors/updateChatUnreadMentionCount.md b/docs/TD_docs/constructors/updateChatUnreadMentionCount.md new file mode 100644 index 00000000..20ce76d9 --- /dev/null +++ b/docs/TD_docs/constructors/updateChatUnreadMentionCount.md @@ -0,0 +1,23 @@ +--- +title: updateChatUnreadMentionCount +description: Chat unread_mention_count has changed +--- +## Constructor: updateChatUnreadMentionCount +[Back to constructors index](index.md) + + + +Chat unread_mention_count has changed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| +|unread\_mention\_count|[int](../types/int.md) | Yes|Number of unread mention messages left in the chat| + + + +### Type: [Update](../types/Update.md) + + diff --git a/docs/TD_docs/constructors/updateFavoriteStickers.md b/docs/TD_docs/constructors/updateFavoriteStickers.md new file mode 100644 index 00000000..3637fcca --- /dev/null +++ b/docs/TD_docs/constructors/updateFavoriteStickers.md @@ -0,0 +1,22 @@ +--- +title: updateFavoriteStickers +description: List of favorite stickers was updated +--- +## Constructor: updateFavoriteStickers +[Back to constructors index](index.md) + + + +List of favorite stickers was updated + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|sticker\_ids|Array of [int](../types/int.md) | Yes|New list of file identifiers of favorite stickers| + + + +### Type: [Update](../types/Update.md) + + diff --git a/docs/TD_docs/constructors/updateFileGenerationStart.md b/docs/TD_docs/constructors/updateFileGenerationStart.md index a5a245d4..a7893b73 100644 --- a/docs/TD_docs/constructors/updateFileGenerationStart.md +++ b/docs/TD_docs/constructors/updateFileGenerationStart.md @@ -13,7 +13,7 @@ File generation process need to be started by the client | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|generation\_id|[long](../types/long.md) | Yes|Unique identifier for the generation process| +|generation\_id|[int64](../constructors/int64.md) | Yes|Unique identifier for the generation process| |original\_path|[string](../types/string.md) | Yes|Path to a file from which new file is generated, may be empty| |destination\_path|[string](../types/string.md) | Yes|Path to a file which should be created and to which new file should be generated| |conversion|[string](../types/string.md) | Yes|String specifying conversion applied to the original file| diff --git a/docs/TD_docs/constructors/updateInstalledStickerSets.md b/docs/TD_docs/constructors/updateInstalledStickerSets.md index ea54771c..ca7ecfb0 100644 --- a/docs/TD_docs/constructors/updateInstalledStickerSets.md +++ b/docs/TD_docs/constructors/updateInstalledStickerSets.md @@ -14,7 +14,7 @@ List of installed sticker sets was updated | Name | Type | Required | Description | |----------|---------------|----------|-------------| |is\_masks|[Bool](../types/Bool.md) | Yes|True, if list of installed mask sticker sets was updated| -|sticker\_set\_ids|Array of [long](../types/long.md) | Yes|New list of installed ordinary sticker sets| +|sticker\_set\_ids|Array of [int64](../constructors/int64.md) | Yes|New list of installed ordinary sticker sets| diff --git a/docs/TD_docs/constructors/updateMessageMentionRead.md b/docs/TD_docs/constructors/updateMessageMentionRead.md new file mode 100644 index 00000000..757df425 --- /dev/null +++ b/docs/TD_docs/constructors/updateMessageMentionRead.md @@ -0,0 +1,24 @@ +--- +title: updateMessageMentionRead +description: Message with an unread mention was read +--- +## Constructor: updateMessageMentionRead +[Back to constructors index](index.md) + + + +Message with an unread mention was read + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| +|message\_id|[int53](../types/int53.md) | Yes|Message identifier| +|unread\_mention\_count|[int](../types/int.md) | Yes|New number of unread mention messages left in the chat| + + + +### Type: [Update](../types/Update.md) + + diff --git a/docs/TD_docs/constructors/updateNewCallbackQuery.md b/docs/TD_docs/constructors/updateNewCallbackQuery.md index 407f48d4..28cb0ab7 100644 --- a/docs/TD_docs/constructors/updateNewCallbackQuery.md +++ b/docs/TD_docs/constructors/updateNewCallbackQuery.md @@ -13,11 +13,11 @@ Bots only. New incoming callback query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Unique query identifier| +|id|[int64](../constructors/int64.md) | Yes|Unique query identifier| |sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query| |chat\_id|[int53](../types/int53.md) | Yes|Identifier of the chat, in which the query was sent| |message\_id|[int53](../types/int53.md) | Yes|Identifier of the message, from which the query is originated| -|chat\_instance|[long](../types/long.md) | Yes|Identifier, uniquely corresponding to the chat a message was sent to| +|chat\_instance|[int64](../constructors/int64.md) | Yes|Identifier, uniquely corresponding to the chat a message was sent to| |payload|[CallbackQueryPayload](../types/CallbackQueryPayload.md) | Yes|Query payload| diff --git a/docs/TD_docs/constructors/updateNewCustomQuery.md b/docs/TD_docs/constructors/updateNewCustomQuery.md index 608cfab4..cd34d347 100644 --- a/docs/TD_docs/constructors/updateNewCustomQuery.md +++ b/docs/TD_docs/constructors/updateNewCustomQuery.md @@ -13,7 +13,7 @@ Bots only. New incoming query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Query identifier| +|id|[int64](../constructors/int64.md) | Yes|Query identifier| |data|[string](../types/string.md) | Yes|JSON-serialized query data| |timeout|[int](../types/int.md) | Yes|Query timeout| diff --git a/docs/TD_docs/constructors/updateNewInlineCallbackQuery.md b/docs/TD_docs/constructors/updateNewInlineCallbackQuery.md index 2b29fdbe..5a1abe55 100644 --- a/docs/TD_docs/constructors/updateNewInlineCallbackQuery.md +++ b/docs/TD_docs/constructors/updateNewInlineCallbackQuery.md @@ -13,10 +13,10 @@ Bots only. New incoming callback query from message sent via bot | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Unique query identifier| +|id|[int64](../constructors/int64.md) | Yes|Unique query identifier| |sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query| |inline\_message\_id|[string](../types/string.md) | Yes|Identifier of the inline message, from which the query is originated| -|chat\_instance|[long](../types/long.md) | Yes|Identifier, uniquely corresponding to the chat a message was sent to| +|chat\_instance|[int64](../constructors/int64.md) | Yes|Identifier, uniquely corresponding to the chat a message was sent to| |payload|[CallbackQueryPayload](../types/CallbackQueryPayload.md) | Yes|Query payload| diff --git a/docs/TD_docs/constructors/updateNewInlineQuery.md b/docs/TD_docs/constructors/updateNewInlineQuery.md index 958ea8d1..494adaa1 100644 --- a/docs/TD_docs/constructors/updateNewInlineQuery.md +++ b/docs/TD_docs/constructors/updateNewInlineQuery.md @@ -13,7 +13,7 @@ Bots only. New incoming inline query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Unique query identifier| +|id|[int64](../constructors/int64.md) | Yes|Unique query identifier| |sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query| |user\_location|[location](../constructors/location.md) | Yes|User location, provided by the client, nullable| |query|[string](../types/string.md) | Yes|Text of the query| diff --git a/docs/TD_docs/constructors/updateNewPreCheckoutQuery.md b/docs/TD_docs/constructors/updateNewPreCheckoutQuery.md index e27b98fc..b4136835 100644 --- a/docs/TD_docs/constructors/updateNewPreCheckoutQuery.md +++ b/docs/TD_docs/constructors/updateNewPreCheckoutQuery.md @@ -13,7 +13,7 @@ Bots only. New incoming pre-checkout query. Contains full information about chec | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Unique query identifier| +|id|[int64](../constructors/int64.md) | Yes|Unique query identifier| |sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query| |currency|[string](../types/string.md) | Yes|Currency for goods price| |total\_amount|[int53](../types/int53.md) | Yes|Goods total price in minimal quantity of the currency| diff --git a/docs/TD_docs/constructors/updateNewShippingQuery.md b/docs/TD_docs/constructors/updateNewShippingQuery.md index b034546a..63a4b087 100644 --- a/docs/TD_docs/constructors/updateNewShippingQuery.md +++ b/docs/TD_docs/constructors/updateNewShippingQuery.md @@ -13,7 +13,7 @@ Bots only. New incoming shipping query. Only for invoices with flexible price | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|Unique query identifier| +|id|[int64](../constructors/int64.md) | Yes|Unique query identifier| |sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query| |invoice\_payload|[string](../types/string.md) | Yes|Invoice payload| |shipping\_address|[shippingAddress](../constructors/shippingAddress.md) | Yes|User shipping address| diff --git a/docs/TD_docs/constructors/user.md b/docs/TD_docs/constructors/user.md index 7008e855..2854551d 100644 --- a/docs/TD_docs/constructors/user.md +++ b/docs/TD_docs/constructors/user.md @@ -23,7 +23,7 @@ Represents user |my\_link|[LinkState](../types/LinkState.md) | Yes|Relationships from me to other user| |foreign\_link|[LinkState](../types/LinkState.md) | Yes|Relationships from other user to me| |is\_verified|[Bool](../types/Bool.md) | Yes|True, if user is verified| -|restriction\_reason|[string](../types/string.md) | Yes|If non-empty, contains the reason, why access to this user must be restricted. Format of the string is "{type}: {description}". {type} contains type of the restriction and at least one of the suffixes "-all", "-ios", "-android", "-wp", which describes platforms on which access should be restricted. For example, "terms-ios-android". {description} contains human-readable description of the restriction, which can be showed to the user| +|restriction\_reason|[string](../types/string.md) | Yes|If non-empty, contains the reason, why access to this user must be restricted. Format of the string is "{type}: {description}". -{type} contains type of the restriction and at least one of the suffixes "-all", "-ios", "-android", "-wp", which describes platforms on which access should be restricted. For example, "terms-ios-android". {description} contains human-readable description of the restriction, which can be showed to the user| |have\_access|[Bool](../types/Bool.md) | Yes|If false, the user is inaccessible and the only known information about it is inside this class. It can't be passed to any method except GetUser. Currently it can be false only for inaccessible authors of the channel posts| |type|[UserType](../types/UserType.md) | Yes|Type of the user| |language\_code|[string](../types/string.md) | Yes|Bots only. IETF language tag of users language| diff --git a/docs/TD_docs/methods/addChatMember.md b/docs/TD_docs/methods/addChatMember.md index 25ba78c2..00e2b3de 100644 --- a/docs/TD_docs/methods/addChatMember.md +++ b/docs/TD_docs/methods/addChatMember.md @@ -1,6 +1,6 @@ --- title: addChatMember -description: Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +description: Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server --- ## Method: addChatMember [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Adds new member to chat. Members can't be added to private or secre YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server ### Params: @@ -17,7 +17,7 @@ Adds new member to chat. Members can't be added to private or secret chats. Memb |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |user\_id|[int](../types/int.md) | Yes|Identifier of the user to add| -|forward\_limit|[int](../types/int.md) | Yes|Number of previous messages from chat to forward to new member, ignored for channel chats| +|forward\_limit|[int](../types/int.md) | Yes|Number of previous messages from chat to forward to new member, ignored for channel chats. Can't be greater than 300| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/addChatMembers.md b/docs/TD_docs/methods/addChatMembers.md index 7afd0ef7..3d6c9232 100644 --- a/docs/TD_docs/methods/addChatMembers.md +++ b/docs/TD_docs/methods/addChatMembers.md @@ -1,6 +1,6 @@ --- title: addChatMembers -description: Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +description: Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Members can't be added to broadcast channel if it has more than 200 members. Members will not be added until chat state will be synchronized with the server --- ## Method: addChatMembers [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Adds many new members to the chat. Currently, available only for ch YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Members can't be added to broadcast channel if it has more than 200 members. Members will not be added until chat state will be synchronized with the server ### Params: diff --git a/docs/TD_docs/methods/addFavoriteSticker.md b/docs/TD_docs/methods/addFavoriteSticker.md new file mode 100644 index 00000000..d062dd97 --- /dev/null +++ b/docs/TD_docs/methods/addFavoriteSticker.md @@ -0,0 +1,22 @@ +--- +title: addFavoriteSticker +description: Adds new sticker to the list of favorite stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list +--- +## Method: addFavoriteSticker +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Adds new sticker to the list of favorite stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|sticker|[InputFile](../types/InputFile.md) | Yes|Sticker file to add| + + +### Return type: [Ok](../types/Ok.md) + diff --git a/docs/TD_docs/methods/addRecentSticker.md b/docs/TD_docs/methods/addRecentSticker.md index 23cde51e..c883c02b 100644 --- a/docs/TD_docs/methods/addRecentSticker.md +++ b/docs/TD_docs/methods/addRecentSticker.md @@ -1,6 +1,6 @@ --- title: addRecentSticker -description: Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list +description: Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list --- ## Method: addRecentSticker [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Manually adds new sticker to the list of recently used stickers. Ne YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list +Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list ### Params: diff --git a/docs/TD_docs/methods/answerCallbackQuery.md b/docs/TD_docs/methods/answerCallbackQuery.md index cfa51250..00a454a4 100644 --- a/docs/TD_docs/methods/answerCallbackQuery.md +++ b/docs/TD_docs/methods/answerCallbackQuery.md @@ -15,7 +15,7 @@ Bots only. Sets result of a callback query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|callback\_query\_id|[long](../types/long.md) | Yes|Identifier of the callback query| +|callback\_query\_id|[int64](../constructors/int64.md) | Yes|Identifier of the callback query| |text|[string](../types/string.md) | Yes|Text of the answer| |show\_alert|[Bool](../types/Bool.md) | Yes|If true, an alert should be shown to the user instead of a toast| |url|[string](../types/string.md) | Yes|Url to be opened| diff --git a/docs/TD_docs/methods/answerCustomQuery.md b/docs/TD_docs/methods/answerCustomQuery.md index caaa11ce..65746c28 100644 --- a/docs/TD_docs/methods/answerCustomQuery.md +++ b/docs/TD_docs/methods/answerCustomQuery.md @@ -15,7 +15,7 @@ Bots only. Answers a custom query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|custom\_query\_id|[long](../types/long.md) | Yes|Identifier of a custom query| +|custom\_query\_id|[int64](../constructors/int64.md) | Yes|Identifier of a custom query| |data|[string](../types/string.md) | Yes|JSON-serialized answer to the query| diff --git a/docs/TD_docs/methods/answerInlineQuery.md b/docs/TD_docs/methods/answerInlineQuery.md index 9a5d47fa..1358e7fd 100644 --- a/docs/TD_docs/methods/answerInlineQuery.md +++ b/docs/TD_docs/methods/answerInlineQuery.md @@ -15,7 +15,7 @@ Bots only. Sets result of an inline query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|inline\_query\_id|[long](../types/long.md) | Yes|Identifier of the inline query| +|inline\_query\_id|[int64](../constructors/int64.md) | Yes|Identifier of the inline query| |is\_personal|[Bool](../types/Bool.md) | Yes|Does result of the query can be cached only for specified user| |results|Array of [InputInlineQueryResult](../types/InputInlineQueryResult.md) | Yes|Results of the query| |cache\_time|[int](../types/int.md) | Yes|Allowed time to cache results of the query in seconds| diff --git a/docs/TD_docs/methods/answerPreCheckoutQuery.md b/docs/TD_docs/methods/answerPreCheckoutQuery.md index 1c983dba..9fdb3915 100644 --- a/docs/TD_docs/methods/answerPreCheckoutQuery.md +++ b/docs/TD_docs/methods/answerPreCheckoutQuery.md @@ -15,7 +15,7 @@ Bots only. Sets result of a pre checkout query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|pre\_checkout\_query\_id|[long](../types/long.md) | Yes|Identifier of the pre-checkout query| +|pre\_checkout\_query\_id|[int64](../constructors/int64.md) | Yes|Identifier of the pre-checkout query| |error\_message|[string](../types/string.md) | Yes|Error message, empty on success| diff --git a/docs/TD_docs/methods/answerShippingQuery.md b/docs/TD_docs/methods/answerShippingQuery.md index 4b45bccd..22c0435d 100644 --- a/docs/TD_docs/methods/answerShippingQuery.md +++ b/docs/TD_docs/methods/answerShippingQuery.md @@ -15,7 +15,7 @@ Bots only. Sets result of a shipping query | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|shipping\_query\_id|[long](../types/long.md) | Yes|Identifier of the shipping query| +|shipping\_query\_id|[int64](../constructors/int64.md) | Yes|Identifier of the shipping query| |shipping\_options|Array of [shippingOption](../constructors/shippingOption.md) | Yes|Available shipping options| |error\_message|[string](../types/string.md) | Yes|Error message, empty on success| diff --git a/docs/TD_docs/methods/changeChatMemberStatus.md b/docs/TD_docs/methods/changeChatMemberStatus.md index 99897582..2580452a 100644 --- a/docs/TD_docs/methods/changeChatMemberStatus.md +++ b/docs/TD_docs/methods/changeChatMemberStatus.md @@ -1,6 +1,6 @@ --- title: changeChatMemberStatus -description: Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server. Status will not be changed if application is killed before it can send request to the server +description: Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server --- ## Method: changeChatMemberStatus [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Changes status of the chat member, need appropriate privileges. Thi YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server. Status will not be changed if application is killed before it can send request to the server +Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server ### Params: diff --git a/docs/TD_docs/methods/changeStickerSet.md b/docs/TD_docs/methods/changeStickerSet.md index 2028f821..ed3516f3 100644 --- a/docs/TD_docs/methods/changeStickerSet.md +++ b/docs/TD_docs/methods/changeStickerSet.md @@ -15,7 +15,7 @@ Installs/uninstalls or enables/archives sticker set | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|set\_id|[long](../types/long.md) | Yes|Identifier of the sticker set| +|set\_id|[int64](../constructors/int64.md) | Yes|Identifier of the sticker set| |is\_installed|[Bool](../types/Bool.md) | Yes|New value of is_installed| |is\_archived|[Bool](../types/Bool.md) | Yes|New value of is_archived. A sticker set can't be installed and archived simultaneously| diff --git a/docs/TD_docs/methods/closeSecretChat.md b/docs/TD_docs/methods/closeSecretChat.md index 81e922d9..07028dee 100644 --- a/docs/TD_docs/methods/closeSecretChat.md +++ b/docs/TD_docs/methods/closeSecretChat.md @@ -1,6 +1,6 @@ --- title: closeSecretChat -description: Closes secret chat +description: Closes secret chat, effectively transfering its state to "Closed" --- ## Method: closeSecretChat [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Closes secret chat YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Closes secret chat +Closes secret chat, effectively transfering its state to "Closed" ### Params: diff --git a/docs/TD_docs/methods/deleteFavoriteSticker.md b/docs/TD_docs/methods/deleteFavoriteSticker.md new file mode 100644 index 00000000..3ff60bff --- /dev/null +++ b/docs/TD_docs/methods/deleteFavoriteSticker.md @@ -0,0 +1,22 @@ +--- +title: deleteFavoriteSticker +description: Removes a sticker from the list of favorite stickers +--- +## Method: deleteFavoriteSticker +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Removes a sticker from the list of favorite stickers + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|sticker|[InputFile](../types/InputFile.md) | Yes|Sticker file to delete from the list| + + +### Return type: [Ok](../types/Ok.md) + diff --git a/docs/TD_docs/methods/deleteImportedContacts.md b/docs/TD_docs/methods/deleteImportedContacts.md new file mode 100644 index 00000000..c7015d7a --- /dev/null +++ b/docs/TD_docs/methods/deleteImportedContacts.md @@ -0,0 +1,21 @@ +--- +title: deleteImportedContacts +description: Deletes all imported contacts +--- +## Method: deleteImportedContacts +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Deletes all imported contacts + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| + + +### Return type: [Ok](../types/Ok.md) + diff --git a/docs/TD_docs/methods/deleteProfilePhoto.md b/docs/TD_docs/methods/deleteProfilePhoto.md index e5a49a26..244cfb91 100644 --- a/docs/TD_docs/methods/deleteProfilePhoto.md +++ b/docs/TD_docs/methods/deleteProfilePhoto.md @@ -15,7 +15,7 @@ Deletes profile photo. If something changes, updateUser will be sent | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|profile\_photo\_id|[long](../types/long.md) | Yes|Identifier of profile photo to delete| +|profile\_photo\_id|[int64](../constructors/int64.md) | Yes|Identifier of profile photo to delete| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/deleteSavedAnimation.md b/docs/TD_docs/methods/deleteSavedAnimation.md index 06c062af..3f4a0ccf 100644 --- a/docs/TD_docs/methods/deleteSavedAnimation.md +++ b/docs/TD_docs/methods/deleteSavedAnimation.md @@ -1,6 +1,6 @@ --- title: deleteSavedAnimation -description: Removes animation from the list of saved animations +description: Removes an animation from the list of saved animations --- ## Method: deleteSavedAnimation [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Removes animation from the list of saved animations YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Removes animation from the list of saved animations +Removes an animation from the list of saved animations ### Params: diff --git a/docs/TD_docs/methods/discardCall.md b/docs/TD_docs/methods/discardCall.md index 78819628..ef47647b 100644 --- a/docs/TD_docs/methods/discardCall.md +++ b/docs/TD_docs/methods/discardCall.md @@ -18,7 +18,7 @@ Discards a call |call\_id|[int](../types/int.md) | Yes|Call identifier| |is\_disconnected|[Bool](../types/Bool.md) | Yes|True, if users was disconnected| |duration|[int](../types/int.md) | Yes|Call duration in seconds| -|connection\_id|[long](../types/long.md) | Yes|Identifier of a connection used during the call| +|connection\_id|[int64](../constructors/int64.md) | Yes|Identifier of a connection used during the call| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/finishFileGeneration.md b/docs/TD_docs/methods/finishFileGeneration.md index 496a85ea..29588c55 100644 --- a/docs/TD_docs/methods/finishFileGeneration.md +++ b/docs/TD_docs/methods/finishFileGeneration.md @@ -15,7 +15,7 @@ Finishes file generation | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|generation\_id|[long](../types/long.md) | Yes|Identifier of the generation process| +|generation\_id|[int64](../constructors/int64.md) | Yes|Identifier of the generation process| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/forwardMessages.md b/docs/TD_docs/methods/forwardMessages.md index 6becb76e..8f1eb175 100644 --- a/docs/TD_docs/methods/forwardMessages.md +++ b/docs/TD_docs/methods/forwardMessages.md @@ -1,6 +1,6 @@ --- title: forwardMessages -description: Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message. UpdateChatTopMessage will not be sent, so returned messages should be used to update chat top message +description: Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message --- ## Method: forwardMessages [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Forwards previously sent messages. Returns forwarded messages in th YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message. UpdateChatTopMessage will not be sent, so returned messages should be used to update chat top message +Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message ### Params: diff --git a/docs/TD_docs/methods/getArchivedStickerSets.md b/docs/TD_docs/methods/getArchivedStickerSets.md index a9357a73..986c3ab3 100644 --- a/docs/TD_docs/methods/getArchivedStickerSets.md +++ b/docs/TD_docs/methods/getArchivedStickerSets.md @@ -16,7 +16,7 @@ Returns list of archived sticker sets | Name | Type | Required | Description | |----------|---------------|----------|-------------| |is\_masks|[Bool](../types/Bool.md) | Yes|Pass true to return mask stickers sets, pass false to return ordinary sticker sets| -|offset\_sticker\_set\_id|[long](../types/long.md) | Yes|Identifier of the sticker set from which return the result| +|offset\_sticker\_set\_id|[int64](../constructors/int64.md) | Yes|Identifier of the sticker set from which return the result| |limit|[int](../types/int.md) | Yes|Maximum number of sticker sets to return| diff --git a/docs/TD_docs/methods/getChatEventLog.md b/docs/TD_docs/methods/getChatEventLog.md index a375ee56..b9848066 100644 --- a/docs/TD_docs/methods/getChatEventLog.md +++ b/docs/TD_docs/methods/getChatEventLog.md @@ -17,7 +17,7 @@ Returns list of service actions taken by chat members and administrators in the |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Chat identifier| |query|[string](../types/string.md) | Yes|Search query to filter events| -|from\_event\_id|[long](../types/long.md) | Yes|Identifier of an event from which to return result, you can use 0 to get results from the latest events| +|from\_event\_id|[int64](../constructors/int64.md) | Yes|Identifier of an event from which to return result, you can use 0 to get results from the latest events| |limit|[int](../types/int.md) | Yes|Maximum number of events to return, can't be greater than 100| |filters|[chatEventLogFilters](../constructors/chatEventLogFilters.md) | Yes|Types of events to return, defaults to all| |user\_ids|Array of [int](../types/int.md) | Yes|User identifiers, which events to return, defaults to all users| diff --git a/docs/TD_docs/methods/getChatHistory.md b/docs/TD_docs/methods/getChatHistory.md index aad20dad..a951d028 100644 --- a/docs/TD_docs/methods/getChatHistory.md +++ b/docs/TD_docs/methods/getChatHistory.md @@ -1,6 +1,6 @@ --- title: getChatHistory -description: Returns messages in a chat. Automatically calls openChat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true +description: Returns messages in a chat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true --- ## Method: getChatHistory [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Returns messages in a chat. Automatically calls openChat. Returns r YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Returns messages in a chat. Automatically calls openChat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true +Returns messages in a chat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true ### Params: diff --git a/docs/TD_docs/methods/getChats.md b/docs/TD_docs/methods/getChats.md index dfaac36d..1c9cdfe9 100644 --- a/docs/TD_docs/methods/getChats.md +++ b/docs/TD_docs/methods/getChats.md @@ -15,7 +15,7 @@ Returns list of chats in the right order, chats are sorted by (order, chat_id) i | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|offset\_order|[long](../types/long.md) | Yes|Chat order to return chats from| +|offset\_order|[int64](../constructors/int64.md) | Yes|Chat order to return chats from| |offset\_chat\_id|[int53](../types/int53.md) | Yes|Chat identifier to return chats from| |limit|[int](../types/int.md) | Yes|Maximum number of chats to be returned. There may be less than limit chats returned even the end of the list is not reached| diff --git a/docs/TD_docs/methods/getFavoriteStickers.md b/docs/TD_docs/methods/getFavoriteStickers.md new file mode 100644 index 00000000..4d9ca09b --- /dev/null +++ b/docs/TD_docs/methods/getFavoriteStickers.md @@ -0,0 +1,21 @@ +--- +title: getFavoriteStickers +description: Returns favorite stickers +--- +## Method: getFavoriteStickers +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Returns favorite stickers + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| + + +### Return type: [Stickers](../types/Stickers.md) + diff --git a/docs/TD_docs/methods/getFileExtension.md b/docs/TD_docs/methods/getFileExtension.md new file mode 100644 index 00000000..b465ed4c --- /dev/null +++ b/docs/TD_docs/methods/getFileExtension.md @@ -0,0 +1,22 @@ +--- +title: getFileExtension +description: Returns file's extension guessing only by its mime type. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously +--- +## Method: getFileExtension +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Returns file's extension guessing only by its mime type. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|mime\_type|[string](../types/string.md) | Yes|Mime type of the file| + + +### Return type: [Text](../types/Text.md) + diff --git a/docs/TD_docs/methods/getFileMimeType.md b/docs/TD_docs/methods/getFileMimeType.md new file mode 100644 index 00000000..c92c3965 --- /dev/null +++ b/docs/TD_docs/methods/getFileMimeType.md @@ -0,0 +1,22 @@ +--- +title: getFileMimeType +description: Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously +--- +## Method: getFileMimeType +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|file\_name|[string](../types/string.md) | Yes|Name of the file or path to the file| + + +### Return type: [Text](../types/Text.md) + diff --git a/docs/TD_docs/methods/getImportedContactCount.md b/docs/TD_docs/methods/getImportedContactCount.md new file mode 100644 index 00000000..26d89550 --- /dev/null +++ b/docs/TD_docs/methods/getImportedContactCount.md @@ -0,0 +1,21 @@ +--- +title: getImportedContactCount +description: Returns total number of imported contacts +--- +## Method: getImportedContactCount +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Returns total number of imported contacts + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| + + +### Return type: [Count](../types/Count.md) + diff --git a/docs/TD_docs/methods/getStickerSet.md b/docs/TD_docs/methods/getStickerSet.md index ef78f614..036e67b6 100644 --- a/docs/TD_docs/methods/getStickerSet.md +++ b/docs/TD_docs/methods/getStickerSet.md @@ -15,7 +15,7 @@ Returns information about sticker set by its identifier | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|set\_id|[long](../types/long.md) | Yes|Identifier of the sticker set| +|set\_id|[int64](../constructors/int64.md) | Yes|Identifier of the sticker set| ### Return type: [StickerSet](../types/StickerSet.md) diff --git a/docs/TD_docs/methods/getStickers.md b/docs/TD_docs/methods/getStickers.md index c2630671..a1d5dcbc 100644 --- a/docs/TD_docs/methods/getStickers.md +++ b/docs/TD_docs/methods/getStickers.md @@ -1,6 +1,6 @@ --- title: getStickers -description: Returns stickers from installed ordinary sticker sets corresponding to the given emoji +description: Returns stickers from installed ordinary sticker sets corresponding to the given emoji. If emoji is not empty, elso favorite and recently used stickers may be returned --- ## Method: getStickers [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Returns stickers from installed ordinary sticker sets corresponding YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Returns stickers from installed ordinary sticker sets corresponding to the given emoji +Returns stickers from installed ordinary sticker sets corresponding to the given emoji. If emoji is not empty, elso favorite and recently used stickers may be returned ### Params: diff --git a/docs/TD_docs/methods/getTextEntities.md b/docs/TD_docs/methods/getTextEntities.md new file mode 100644 index 00000000..86fbcbfe --- /dev/null +++ b/docs/TD_docs/methods/getTextEntities.md @@ -0,0 +1,22 @@ +--- +title: getTextEntities +description: Returns all mentions, hashtags, bot commands, URLs and emails contained in the text. Offline method. Can be called before authorization. Can be called synchronously +--- +## Method: getTextEntities +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Returns all mentions, hashtags, bot commands, URLs and emails contained in the text. Offline method. Can be called before authorization. Can be called synchronously + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text to find entites in| + + +### Return type: [TextEntities](../types/TextEntities.md) + diff --git a/docs/TD_docs/methods/importChatInviteLink.md b/docs/TD_docs/methods/importChatInviteLink.md index a2119c7d..5b4dd1ec 100644 --- a/docs/TD_docs/methods/importChatInviteLink.md +++ b/docs/TD_docs/methods/importChatInviteLink.md @@ -1,6 +1,6 @@ --- title: importChatInviteLink -description: Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +description: Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server --- ## Method: importChatInviteLink [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Imports chat invite link, adds current user to a chat if possible. YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server ### Params: diff --git a/docs/TD_docs/methods/index.md b/docs/TD_docs/methods/index.md index 4de9e6e3..12c7b713 100644 --- a/docs/TD_docs/methods/index.md +++ b/docs/TD_docs/methods/index.md @@ -37,6 +37,9 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) +*** +

$MadelineProto->[addFavoriteSticker](addFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + ***

$MadelineProto->[addNetworkStatistics](addNetworkStatistics.md)(\['entry' => [NetworkStatisticsEntry](../types/NetworkStatisticsEntry.md), \]) === [$Ok](../types/Ok.md) @@ -53,19 +56,19 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[addStickerToSet](addStickerToSet.md)(\['user_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'sticker' => [inputSticker](../constructors/inputSticker.md), \]) === [$StickerSet](../types/StickerSet.md) *** -

$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [long](../types/long.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [int64](../constructors/int64.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[answerCustomQuery](answerCustomQuery.md)(\['custom_query_id' => [long](../types/long.md), 'data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[answerCustomQuery](answerCustomQuery.md)(\['custom_query_id' => [int64](../constructors/int64.md), 'data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [long](../types/long.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [int64](../constructors/int64.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[answerPreCheckoutQuery](answerPreCheckoutQuery.md)(\['pre_checkout_query_id' => [long](../types/long.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[answerPreCheckoutQuery](answerPreCheckoutQuery.md)(\['pre_checkout_query_id' => [int64](../constructors/int64.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[answerShippingQuery](answerShippingQuery.md)(\['shipping_query_id' => [long](../types/long.md), 'shipping_options' => \[[shippingOption](../constructors/shippingOption.md)\], 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[answerShippingQuery](answerShippingQuery.md)(\['shipping_query_id' => [int64](../constructors/int64.md), 'shipping_options' => \[[shippingOption](../constructors/shippingOption.md)\], 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[blockUser](blockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) @@ -110,7 +113,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[changePhoneNumber](changePhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) *** -

$MadelineProto->[changeStickerSet](changeStickerSet.md)(\['set_id' => [long](../types/long.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[changeStickerSet](changeStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeUsername](changeUsername.md)(\['username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) @@ -187,9 +190,15 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) +*** +

$MadelineProto->[deleteFavoriteSticker](deleteFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + ***

$MadelineProto->[deleteFile](deleteFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +*** +

$MadelineProto->[deleteImportedContacts](deleteImportedContacts.md)(\[\]) === [$Ok](../types/Ok.md) + ***

$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'revoke' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) @@ -197,7 +206,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteRecentHashtag](deleteRecentHashtag.md)(\['hashtag' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) @@ -227,7 +236,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[deleteTopChat](deleteTopChat.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[discardCall](discardCall.md)(\['call_id' => [int](../types/int.md), 'is_disconnected' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'connection_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[discardCall](discardCall.md)(\['call_id' => [int](../types/int.md), 'is_disconnected' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'connection_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[downloadFile](downloadFile.md)(\['file_id' => [int](../types/int.md), 'priority' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) @@ -254,7 +263,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md) *** -

$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [int53](../types/int53.md), 'from_chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) @@ -266,7 +275,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[getActiveSessions](getActiveSessions.md)(\[\]) === [$Sessions](../types/Sessions.md) *** -

$MadelineProto->[getArchivedStickerSets](getArchivedStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'offset_sticker_set_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) +

$MadelineProto->[getArchivedStickerSets](getArchivedStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'offset_sticker_set_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) ***

$MadelineProto->[getAttachedStickerSets](getAttachedStickerSets.md)(\['file_id' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) @@ -293,7 +302,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[getChat](getChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Chat](../types/Chat.md) *** -

$MadelineProto->[getChatEventLog](getChatEventLog.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_event_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), 'filters' => [chatEventLogFilters](../constructors/chatEventLogFilters.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$ChatEvents](../types/ChatEvents.md) +

$MadelineProto->[getChatEventLog](getChatEventLog.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_event_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filters' => [chatEventLogFilters](../constructors/chatEventLogFilters.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$ChatEvents](../types/ChatEvents.md) ***

$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [int53](../types/int53.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'only_local' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) @@ -305,7 +314,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md) *** -

$MadelineProto->[getChats](getChats.md)(\['offset_order' => [long](../types/long.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) +

$MadelineProto->[getChats](getChats.md)(\['offset_order' => [int64](../constructors/int64.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) ***

$MadelineProto->[getCommonChats](getCommonChats.md)(\['user_id' => [int](../types/int.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) @@ -313,9 +322,18 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[getCreatedPublicChats](getCreatedPublicChats.md)(\[\]) === [$Chats](../types/Chats.md) +*** +

$MadelineProto->[getFavoriteStickers](getFavoriteStickers.md)(\[\]) === [$Stickers](../types/Stickers.md) + ***

$MadelineProto->[getFile](getFile.md)(\['file_id' => [int](../types/int.md), \]) === [$File](../types/File.md) +*** +

$MadelineProto->[getFileExtension](getFileExtension.md)(\['mime_type' => [string](../types/string.md), \]) === [$Text](../types/Text.md) + +*** +

$MadelineProto->[getFileMimeType](getFileMimeType.md)(\['file_name' => [string](../types/string.md), \]) === [$Text](../types/Text.md) + ***

$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), 'file_type' => [FileType](../types/FileType.md), \]) === [$File](../types/File.md) @@ -328,6 +346,9 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[getGroupFull](getGroupFull.md)(\['group_id' => [int](../types/int.md), \]) === [$GroupFull](../types/GroupFull.md) +*** +

$MadelineProto->[getImportedContactCount](getImportedContactCount.md)(\[\]) === [$Count](../types/Count.md) + ***

$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) @@ -398,7 +419,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[getStickerEmojis](getStickerEmojis.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$StickerEmojis](../types/StickerEmojis.md) *** -

$MadelineProto->[getStickerSet](getStickerSet.md)(\['set_id' => [long](../types/long.md), \]) === [$StickerSet](../types/StickerSet.md) +

$MadelineProto->[getStickerSet](getStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), \]) === [$StickerSet](../types/StickerSet.md) ***

$MadelineProto->[getStickers](getStickers.md)(\['emoji' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Stickers](../types/Stickers.md) @@ -418,6 +439,9 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[getTermsOfService](getTermsOfService.md)(\[\]) === [$Text](../types/Text.md) +*** +

$MadelineProto->[getTextEntities](getTextEntities.md)(\['text' => [string](../types/string.md), \]) === [$TextEntities](../types/TextEntities.md) + ***

$MadelineProto->[getTopChats](getTopChats.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) @@ -479,7 +503,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[registerDevice](registerDevice.md)(\['device_token' => [DeviceToken](../types/DeviceToken.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[reorderInstalledStickerSets](reorderInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[reorderInstalledStickerSets](reorderInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) @@ -515,7 +539,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[searchChatMembers](searchChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) *** -

$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'sender_user_id' => [int](../types/int.md), 'from_message_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md) +

$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'sender_user_id' => [int](../types/int.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) @@ -536,7 +560,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[searchPublicChats](searchPublicChats.md)(\['username_prefix' => [string](../types/string.md), \]) === [$Chats](../types/Chats.md) *** -

$MadelineProto->[searchSecretMessages](searchSecretMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_search_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$FoundMessages](../types/FoundMessages.md) +

$MadelineProto->[searchSecretMessages](searchSecretMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_search_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$FoundMessages](../types/FoundMessages.md) ***

$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md) @@ -557,7 +581,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[sendCustomRequest](sendCustomRequest.md)(\['method' => [string](../types/string.md), 'parameters' => [string](../types/string.md), \]) === [$CustomRequestResult](../types/CustomRequestResult.md) *** -

$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md) +

$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [int64](../constructors/int64.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) @@ -574,11 +598,14 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[setBotUpdatesStatus](setBotUpdatesStatus.md)(\['pending_update_count' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +*** +

$MadelineProto->[setChannelStickerSet](setChannelStickerSet.md)(\['channel_id' => [int](../types/int.md), 'sticker_set_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + ***

$MadelineProto->[setChatClientData](setChatClientData.md)(\['chat_id' => [int53](../types/int53.md), 'client_data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [long](../types/long.md), 'size' => [int](../types/int.md), 'local_size' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [int64](../constructors/int64.md), 'size' => [int](../types/int.md), 'local_size' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md) @@ -620,7 +647,7 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[terminateAllOtherSessions](terminateAllOtherSessions.md)(\[\]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[terminateSession](terminateSession.md)(\['session_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[terminateSession](terminateSession.md)(\['session_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[testCallBytes](testCallBytes.md)(\['x' => [bytes](../types/bytes.md), \]) === [$TestBytes](../types/TestBytes.md) @@ -689,5 +716,5 @@ $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();

$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) *** -

$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) +

$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/reorderInstalledStickerSets.md b/docs/TD_docs/methods/reorderInstalledStickerSets.md index f5d6f9e9..5bbed182 100644 --- a/docs/TD_docs/methods/reorderInstalledStickerSets.md +++ b/docs/TD_docs/methods/reorderInstalledStickerSets.md @@ -16,7 +16,7 @@ Changes the order of installed sticker sets | Name | Type | Required | Description | |----------|---------------|----------|-------------| |is\_masks|[Bool](../types/Bool.md) | Yes|Pass true to change mask sticker sets order, pass false to change ordinary sticker sets order| -|sticker\_set\_ids|Array of [long](../types/long.md) | Yes|Identifiers of installed sticker sets in the new right order| +|sticker\_set\_ids|Array of [int64](../constructors/int64.md) | Yes|Identifiers of installed sticker sets in the new right order| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/searchChatMessages.md b/docs/TD_docs/methods/searchChatMessages.md index 2c2d480c..b63f7fc1 100644 --- a/docs/TD_docs/methods/searchChatMessages.md +++ b/docs/TD_docs/methods/searchChatMessages.md @@ -15,12 +15,13 @@ Searches for messages with given words in the chat. Returns result in reverse ch | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier to search in| +|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier to search messages in| |query|[string](../types/string.md) | Yes|Query to search for| |sender\_user\_id|[int](../types/int.md) | Yes|If not 0, only messages sent by the specified user will be returned. Doesn't supported in secret chats| |from\_message\_id|[int53](../types/int53.md) | Yes|Identifier of the message from which we need a history, you can use 0 to get results from the beginning| -|limit|[int](../types/int.md) | Yes|Maximum number of messages to be returned, can't be greater than 100. There may be less than limit messages returned even the end of the history is not reached| -|filter|[SearchMessagesFilter](../types/SearchMessagesFilter.md) | Yes|Filter for content of searched messages| +|offset|[int](../types/int.md) | Yes|Specify 0 to get results exactly from from_message_id or negative offset to get specified message and some newer messages| +|limit|[int](../types/int.md) | Yes|Maximum number of messages to be returned, should be positive and can't be greater than 100. If offset is negative, limit must be greater than -offset. There may be less than limit messages returned even the end of the history is not reached| +|filter|[SearchMessagesFilter](../types/SearchMessagesFilter.md) | Yes|Filter for content of the searched messages| ### Return type: [Messages](../types/Messages.md) diff --git a/docs/TD_docs/methods/searchSecretMessages.md b/docs/TD_docs/methods/searchSecretMessages.md index 8458f5bd..a5f07a54 100644 --- a/docs/TD_docs/methods/searchSecretMessages.md +++ b/docs/TD_docs/methods/searchSecretMessages.md @@ -17,7 +17,7 @@ Searches for messages in secret chats. Returns result in reverse chronological o |----------|---------------|----------|-------------| |chat\_id|[int53](../types/int53.md) | Yes|Identifier of a chat to search in. Specify 0 to search in all secret chats| |query|[string](../types/string.md) | Yes|Query to search for. If empty, searchChatMessages should be used instead| -|from\_search\_id|[long](../types/long.md) | Yes|Identifier from the result of previous request, use 0 to get results from the beginning| +|from\_search\_id|[int64](../constructors/int64.md) | Yes|Identifier from the result of previous request, use 0 to get results from the beginning| |limit|[int](../types/int.md) | Yes|Maximum number of messages to be returned, can't be greater than 100| |filter|[SearchMessagesFilter](../types/SearchMessagesFilter.md) | Yes|Filter for content of searched messages| diff --git a/docs/TD_docs/methods/sendBotStartMessage.md b/docs/TD_docs/methods/sendBotStartMessage.md index 58ad1d6e..485beb26 100644 --- a/docs/TD_docs/methods/sendBotStartMessage.md +++ b/docs/TD_docs/methods/sendBotStartMessage.md @@ -1,6 +1,6 @@ --- title: sendBotStartMessage -description: Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message +description: Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message --- ## Method: sendBotStartMessage [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Invites bot to a chat (if it is not in the chat) and send /start to YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message +Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message ### Params: diff --git a/docs/TD_docs/methods/sendInlineQueryResultMessage.md b/docs/TD_docs/methods/sendInlineQueryResultMessage.md index c39fd1eb..c801fdbb 100644 --- a/docs/TD_docs/methods/sendInlineQueryResultMessage.md +++ b/docs/TD_docs/methods/sendInlineQueryResultMessage.md @@ -1,6 +1,6 @@ --- title: sendInlineQueryResultMessage -description: Sends result of the inline query as a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message. Always clears chat draft message +description: Sends result of the inline query as a message. Returns sent message. Always clears chat draft message --- ## Method: sendInlineQueryResultMessage [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Sends result of the inline query as a message. Returns sent message YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Sends result of the inline query as a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message. Always clears chat draft message +Sends result of the inline query as a message. Returns sent message. Always clears chat draft message ### Params: @@ -19,7 +19,7 @@ Sends result of the inline query as a message. Returns sent message. UpdateChatT |reply\_to\_message\_id|[int53](../types/int53.md) | Yes|Identifier of a message to reply to or 0| |disable\_notification|[Bool](../types/Bool.md) | Yes|Pass true, to disable notification about the message, doesn't works in secret chats| |from\_background|[Bool](../types/Bool.md) | Yes|Pass true, if the message is sent from background| -|query\_id|[long](../types/long.md) | Yes|Identifier of the inline query| +|query\_id|[int64](../constructors/int64.md) | Yes|Identifier of the inline query| |result\_id|[string](../types/string.md) | Yes|Identifier of the inline result| diff --git a/docs/TD_docs/methods/sendMessage.md b/docs/TD_docs/methods/sendMessage.md index 22aa9c46..f747ab1c 100644 --- a/docs/TD_docs/methods/sendMessage.md +++ b/docs/TD_docs/methods/sendMessage.md @@ -1,6 +1,6 @@ --- title: sendMessage -description: Sends a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message +description: Sends a message. Returns sent message --- ## Method: sendMessage [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Sends a message. Returns sent message. UpdateChatTopMessage will no YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Sends a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message +Sends a message. Returns sent message ### Params: diff --git a/docs/TD_docs/methods/setChannelStickerSet.md b/docs/TD_docs/methods/setChannelStickerSet.md new file mode 100644 index 00000000..fd6b6acb --- /dev/null +++ b/docs/TD_docs/methods/setChannelStickerSet.md @@ -0,0 +1,23 @@ +--- +title: setChannelStickerSet +description: Changes sticker set of the channel. Needs appropriate rights in the channel +--- +## Method: setChannelStickerSet +[Back to methods index](index.md) + + +YOU CANNOT USE THIS METHOD IN MADELINEPROTO + + +Changes sticker set of the channel. Needs appropriate rights in the channel + +### Params: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Identifier of the channel| +|sticker\_set\_id|[int64](../constructors/int64.md) | Yes|New value of channel sticker set identifier. Use 0 to remove channel sticker set| + + +### Return type: [Ok](../types/Ok.md) + diff --git a/docs/TD_docs/methods/setFileGenerationProgress.md b/docs/TD_docs/methods/setFileGenerationProgress.md index 4492fa00..febfee75 100644 --- a/docs/TD_docs/methods/setFileGenerationProgress.md +++ b/docs/TD_docs/methods/setFileGenerationProgress.md @@ -15,7 +15,7 @@ Next part of a file was generated | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|generation\_id|[long](../types/long.md) | Yes|Identifier of the generation process| +|generation\_id|[int64](../constructors/int64.md) | Yes|Identifier of the generation process| |size|[int](../types/int.md) | Yes|Full size of file in bytes, 0 if unknown.| |local\_size|[int](../types/int.md) | Yes|Number of bytes already generated. Negative number means that generation has failed and should be terminated| diff --git a/docs/TD_docs/methods/setNetworkType.md b/docs/TD_docs/methods/setNetworkType.md index 666be2d9..5d078271 100644 --- a/docs/TD_docs/methods/setNetworkType.md +++ b/docs/TD_docs/methods/setNetworkType.md @@ -1,6 +1,6 @@ --- title: setNetworkType -description: Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. Network type is used to check if library can use network at all and for collecting detailed network data usage statistics +description: Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. -Network type is used to check if library can use network at all and for collecting detailed network data usage statistics --- ## Method: setNetworkType [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Sets current network type. Can be called before authorization. Call YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. Network type is used to check if library can use network at all and for collecting detailed network data usage statistics +Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. -Network type is used to check if library can use network at all and for collecting detailed network data usage statistics ### Params: diff --git a/docs/TD_docs/methods/setProfilePhoto.md b/docs/TD_docs/methods/setProfilePhoto.md index 058c4d07..0b0047be 100644 --- a/docs/TD_docs/methods/setProfilePhoto.md +++ b/docs/TD_docs/methods/setProfilePhoto.md @@ -1,6 +1,6 @@ --- title: setProfilePhoto -description: Uploads new profile photo for logged in user. Photo will not change until change will be synchronized with the server. Photo will not be changed if application is killed before it can send request to the server. If something changes, updateUser will be sent +description: Uploads new profile photo for logged in user. If something changes, updateUser will be sent --- ## Method: setProfilePhoto [Back to methods index](index.md) @@ -9,7 +9,7 @@ description: Uploads new profile photo for logged in user. Photo will not change YOU CANNOT USE THIS METHOD IN MADELINEPROTO -Uploads new profile photo for logged in user. Photo will not change until change will be synchronized with the server. Photo will not be changed if application is killed before it can send request to the server. If something changes, updateUser will be sent +Uploads new profile photo for logged in user. If something changes, updateUser will be sent ### Params: diff --git a/docs/TD_docs/methods/terminateSession.md b/docs/TD_docs/methods/terminateSession.md index dceb6b02..b8513144 100644 --- a/docs/TD_docs/methods/terminateSession.md +++ b/docs/TD_docs/methods/terminateSession.md @@ -15,7 +15,7 @@ Terminates another session of logged in user | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|session\_id|[long](../types/long.md) | Yes|Session identifier| +|session\_id|[int64](../constructors/int64.md) | Yes|Session identifier| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/viewTrendingStickerSets.md b/docs/TD_docs/methods/viewTrendingStickerSets.md index 21d2243b..0b27524d 100644 --- a/docs/TD_docs/methods/viewTrendingStickerSets.md +++ b/docs/TD_docs/methods/viewTrendingStickerSets.md @@ -15,7 +15,7 @@ Informs that some trending sticker sets are viewed by the user | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|sticker\_set\_ids|Array of [long](../types/long.md) | Yes|Identifiers of viewed trending sticker sets| +|sticker\_set\_ids|Array of [int64](../constructors/int64.md) | Yes|Identifiers of viewed trending sticker sets| ### Return type: [Ok](../types/Ok.md) diff --git a/docs/TD_docs/types/ChatEventAction.md b/docs/TD_docs/types/ChatEventAction.md index 2cd9bcf2..94de3764 100644 --- a/docs/TD_docs/types/ChatEventAction.md +++ b/docs/TD_docs/types/ChatEventAction.md @@ -41,6 +41,8 @@ Represents a chat event [chatEventSignMessagesToggled](../constructors/chatEventSignMessagesToggled.md) +[chatEventStickerSetChanged](../constructors/chatEventStickerSetChanged.md) + ### Methods that return an object of this type (methods): diff --git a/docs/TD_docs/types/Count.md b/docs/TD_docs/types/Count.md new file mode 100644 index 00000000..28686391 --- /dev/null +++ b/docs/TD_docs/types/Count.md @@ -0,0 +1,21 @@ +--- +title: Count +description: constructors and methods of type Count +--- +## Type: Count +[Back to types index](index.md) + + + +### Possible values (constructors): + +[count](../constructors/count.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->getImportedContactCount](../methods/getImportedContactCount.md) + + + diff --git a/docs/TD_docs/types/InputThumb.md b/docs/TD_docs/types/InputThumb.md index 714dc96f..ad54ee32 100644 --- a/docs/TD_docs/types/InputThumb.md +++ b/docs/TD_docs/types/InputThumb.md @@ -7,13 +7,9 @@ description: constructors and methods of type InputThumb -Thumb to send along with a file, should be in jpeg format or webp format for stickers - ### Possible values (constructors): -[inputThumbLocal](../constructors/inputThumbLocal.md) - -[inputThumbGenerated](../constructors/inputThumbGenerated.md) +[inputThumb](../constructors/inputThumb.md) diff --git a/docs/TD_docs/types/Ok.md b/docs/TD_docs/types/Ok.md index e005ef6d..0260e1d0 100644 --- a/docs/TD_docs/types/Ok.md +++ b/docs/TD_docs/types/Ok.md @@ -107,6 +107,8 @@ description: constructors and methods of type Ok [$MadelineProto->deleteContacts](../methods/deleteContacts.md) +[$MadelineProto->deleteImportedContacts](../methods/deleteImportedContacts.md) + [$MadelineProto->changeStickerSet](../methods/changeStickerSet.md) [$MadelineProto->viewTrendingStickerSets](../methods/viewTrendingStickerSets.md) @@ -117,6 +119,10 @@ description: constructors and methods of type Ok [$MadelineProto->clearRecentStickers](../methods/clearRecentStickers.md) +[$MadelineProto->addFavoriteSticker](../methods/addFavoriteSticker.md) + +[$MadelineProto->deleteFavoriteSticker](../methods/deleteFavoriteSticker.md) + [$MadelineProto->addSavedAnimation](../methods/addSavedAnimation.md) [$MadelineProto->deleteSavedAnimation](../methods/deleteSavedAnimation.md) @@ -145,6 +151,8 @@ description: constructors and methods of type Ok [$MadelineProto->changeChannelUsername](../methods/changeChannelUsername.md) +[$MadelineProto->setChannelStickerSet](../methods/setChannelStickerSet.md) + [$MadelineProto->toggleChannelInvites](../methods/toggleChannelInvites.md) [$MadelineProto->toggleChannelSignMessages](../methods/toggleChannelSignMessages.md) diff --git a/docs/TD_docs/types/SearchMessagesFilter.md b/docs/TD_docs/types/SearchMessagesFilter.md index 3867a70a..026fe6c7 100644 --- a/docs/TD_docs/types/SearchMessagesFilter.md +++ b/docs/TD_docs/types/SearchMessagesFilter.md @@ -39,6 +39,10 @@ Represents filter for content of searched messages [searchMessagesFilterVoiceAndVideoNote](../constructors/searchMessagesFilterVoiceAndVideoNote.md) +[searchMessagesFilterMention](../constructors/searchMessagesFilterMention.md) + +[searchMessagesFilterUnreadMention](../constructors/searchMessagesFilterUnreadMention.md) + ### Methods that return an object of this type (methods): diff --git a/docs/TD_docs/types/Stickers.md b/docs/TD_docs/types/Stickers.md index c1d6260b..9666c121 100644 --- a/docs/TD_docs/types/Stickers.md +++ b/docs/TD_docs/types/Stickers.md @@ -21,5 +21,7 @@ description: constructors and methods of type Stickers [$MadelineProto->addRecentSticker](../methods/addRecentSticker.md) +[$MadelineProto->getFavoriteStickers](../methods/getFavoriteStickers.md) + diff --git a/docs/TD_docs/types/Text.md b/docs/TD_docs/types/Text.md index fd3de6e3..065cdf62 100644 --- a/docs/TD_docs/types/Text.md +++ b/docs/TD_docs/types/Text.md @@ -15,6 +15,10 @@ description: constructors and methods of type Text ### Methods that return an object of this type (methods): +[$MadelineProto->getFileMimeType](../methods/getFileMimeType.md) + +[$MadelineProto->getFileExtension](../methods/getFileExtension.md) + [$MadelineProto->getInviteText](../methods/getInviteText.md) [$MadelineProto->getTermsOfService](../methods/getTermsOfService.md) diff --git a/docs/TD_docs/types/TextEntities.md b/docs/TD_docs/types/TextEntities.md new file mode 100644 index 00000000..28be9609 --- /dev/null +++ b/docs/TD_docs/types/TextEntities.md @@ -0,0 +1,21 @@ +--- +title: TextEntities +description: constructors and methods of type TextEntities +--- +## Type: TextEntities +[Back to types index](index.md) + + + +### Possible values (constructors): + +[textEntities](../constructors/textEntities.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->getTextEntities](../methods/getTextEntities.md) + + + diff --git a/docs/TD_docs/types/Update.md b/docs/TD_docs/types/Update.md index 4213a430..bc34a1b5 100644 --- a/docs/TD_docs/types/Update.md +++ b/docs/TD_docs/types/Update.md @@ -29,6 +29,8 @@ Contains notifications about data changes [updateOpenMessageContent](../constructors/updateOpenMessageContent.md) +[updateMessageMentionRead](../constructors/updateMessageMentionRead.md) + [updateNewChat](../constructors/updateNewChat.md) [updateChatTitle](../constructors/updateChatTitle.md) @@ -45,6 +47,8 @@ Contains notifications about data changes [updateChatReadOutbox](../constructors/updateChatReadOutbox.md) +[updateChatUnreadMentionCount](../constructors/updateChatUnreadMentionCount.md) + [updateNotificationSettings](../constructors/updateNotificationSettings.md) [updateChatReplyMarkup](../constructors/updateChatReplyMarkup.md) @@ -95,6 +99,8 @@ Contains notifications about data changes [updateRecentStickers](../constructors/updateRecentStickers.md) +[updateFavoriteStickers](../constructors/updateFavoriteStickers.md) + [updateSavedAnimations](../constructors/updateSavedAnimations.md) [updateConnectionState](../constructors/updateConnectionState.md) diff --git a/docs/TD_docs/types/index.md b/docs/TD_docs/types/index.md index 8bdf330d..7b652bb7 100644 --- a/docs/TD_docs/types/index.md +++ b/docs/TD_docs/types/index.md @@ -80,6 +80,8 @@ description: List of types [Contact](Contact.md) +[Count](Count.md) + [CustomRequestResult](CustomRequestResult.md) [DeviceToken](DeviceToken.md) @@ -258,6 +260,8 @@ description: List of types [Text](Text.md) +[TextEntities](TextEntities.md) + [TextEntity](TextEntity.md) [TextEntityType](TextEntityType.md) diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index f57adcf7..abe20978 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -27,9 +27,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index f57adcf7..abe20978 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -27,9 +27,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 52b300d1..b962ceb2 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -28,9 +28,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index b17671ea..137b10c6 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -28,9 +28,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 689469e0..09a7c5bd 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -29,9 +29,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 689469e0..09a7c5bd 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -29,9 +29,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 689469e0..09a7c5bd 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -29,9 +29,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 2bc63256..2937900b 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -30,9 +30,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 2bc63256..2937900b 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -30,9 +30,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 2bc63256..2937900b 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -30,9 +30,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 2bc63256..2937900b 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -30,9 +30,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 2bc63256..2937900b 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -30,9 +30,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index f66eb49f..a2ab3682 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index 048a1d32..7783282e 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -25,7 +25,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/old_docs/API_docs_v72/methods/messages_sendMedia.md b/old_docs/API_docs_v72/methods/messages_sendMedia.md index b58bf325..5a2ad278 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v72/methods/messages_sendMedia.md @@ -32,9 +32,6 @@ description: messages.sendMedia parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_154_MISSING|| -|FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| diff --git a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md index 987e721c..075dab4b 100644 --- a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md @@ -22,7 +22,6 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| |FILE_PARTS_INVALID|The number of file parts is invalid| |IMAGE_PROCESS_FAILED|Failure while processing image| |PHOTO_CROP_SIZE_SMALL|Photo is too small| diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 54ccef11..b853e3a4 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -42,7 +42,7 @@ trait TL $e = null; $class = null; $dparams = []; - foreach ($tl_file as $line) { + foreach ($tl_file as $line_number => $line) { $line = rtrim($line); if (preg_match('|^//@|', $line)) { $list = explode(' @', str_replace('//', ' ', $line)); diff --git a/src/danog/MadelineProto/TL_td.tl b/src/danog/MadelineProto/TL_td.tl index 73562a7f..9dc39155 100644 --- a/src/danog/MadelineProto/TL_td.tl +++ b/src/danog/MadelineProto/TL_td.tl @@ -58,7 +58,7 @@ temporaryPasswordState has_password:Bool valid_for:int = TemporaryPasswordState; //@description Represents a file //@id Unique file identifier -//@persistent_id Persistent file identifier, if exists. Can be used across application restarts or even other devices for current logged user. If begins with "http://" or "https://", it is HTTP URL of the file. Currently, TDLib is unable to download files if only they URL is known. If downloadFile is called on a such file or it is sended to a secret chat TDLib starts file generation process by sending to the client updateFileGenerationStart with HTTP URL in the original_path and "#url#" as conversion string. Client supposed to generate the file by downloading it to the specified location +//@persistent_id Persistent file identifier, if exists. Can be used across application restarts or even other devices for current logged user. If begins with "http://" or "https://", it is HTTP URL of the file. Currently, TDLib is unable to download files if only they URL is known.-If downloadFile is called on a such file or it is sended to a secret chat TDLib starts file generation process by sending to the client updateFileGenerationStart with HTTP URL in the original_path and "#url#" as conversion string. Client supposed to generate the file by downloading it to the specified location //@size File size, 0 if unknown //@is_being_downloaded True, if the file is currently being downloaded //@local_size Size of locally available part of the file. If size != 0 && local_size == size, full file is available locally @@ -78,7 +78,7 @@ inputFilePersistentId persistent_id:string = InputFile; //@description File deifned by local path @path Local path to the file inputFileLocal path:string = InputFile; -//@description File generated by the client @original_path Local path to a file from which the file is generated, may be empty if there is no such file @conversion String specifying conversion applied to the original file, should be persistent across application restart @expected_size Expected size of the generated file +//@description File generated by the client @original_path Local path to a file from which the file is generated, may be empty if there is no such file @conversion String specifying conversion applied to the original file, should be persistent across application restart @expected_size Expected size of the generated file, 0 if unknown inputFileGenerated original_path:string conversion:string expected_size:int = InputFile; @@ -109,11 +109,11 @@ audio duration:int title:string performer:string file_name:string mime_type:stri document file_name:string mime_type:string thumb:photoSize document:file = Document; //@description Describes photo @id Photo identifier, 0 for deleted photo @has_stickers True, if some stickers was added to the photo @sizes Available variants of photo of different sizes -photo id:long has_stickers:Bool sizes:vector = Photo; +photo id:int64 has_stickers:Bool sizes:vector = Photo; //@description Describes sticker @set_id Identifier of sticker set to which the sticker belongs or 0 if none @width Sticker width as defined by sender @height Sticker height as defined by sender //@emoji Emoji corresponding to the sticker @is_mask True, if the sticker is a mask @mask_position Position where the mask should be placed, nullable @thumb Sticker thumb in webp or jpeg format, nullable @sticker File with sticker -sticker set_id:long width:int height:int emoji:string is_mask:Bool mask_position:maskPosition thumb:photoSize sticker:file = Sticker; +sticker set_id:int64 width:int height:int emoji:string is_mask:Bool mask_position:maskPosition thumb:photoSize sticker:file = Sticker; //@description Describes video file @duration Duration of the video in seconds as defined by sender @width Video width as defined by sender @height Video height as defined by sender //@file_name Original name of a file as defined by sender @mime_type MIME type of a file as defined by sender @has_stickers True, if some stickers was added to the photo @thumb Video thumb as defined by sender, nullable @video File with the video @@ -138,12 +138,12 @@ venue location:location title:string address:string provider:string id:string = //@description Describes a game @id Game id @short_name Game short name, to share a game use a URL https://t.me/{bot_username}?game={game_short_name} @title Game title @text Game text, usually containing game scoreboards //@text_entities Entities contained in the text @param_description Game description @photo Game photo @animation Game animation, nullable -game id:long short_name:string title:string text:string text_entities:vector description:string photo:photo animation:animation = Game; +game id:int64 short_name:string title:string text:string text_entities:vector description:string photo:photo animation:animation = Game; //@description Describes user profile photo @id Photo identifier, 0 for empty photo. Can be used to find photo in list of userProfilePhotos //@small Small (160x160) user profile photo @big Big (640x640) user profile photo -profilePhoto id:long small:file big:file = ProfilePhoto; +profilePhoto id:int64 small:file big:file = ProfilePhoto; //@description Describes chat photo @small Small (160x160) chat photo @big Big (640x640) chat photo chatPhoto small:file big:file = ChatPhoto; @@ -187,7 +187,7 @@ botInfo description:string commands:vector = BotInfo; //@description Represents user @id User identifier @first_name User first name @last_name User last name @username User username //@phone_number User's phone number @status User's online status @profile_photo User profile photo, nullable -//@my_link Relationships from me to other user @foreign_link Relationships from other user to me @is_verified True, if user is verified @restriction_reason If non-empty, contains the reason, why access to this user must be restricted. Format of the string is "{type}: {description}". {type} contains type of the restriction and at least one of the suffixes "-all", "-ios", "-android", "-wp", which describes platforms on which access should be restricted. For example, "terms-ios-android". {description} contains human-readable description of the restriction, which can be showed to the user +//@my_link Relationships from me to other user @foreign_link Relationships from other user to me @is_verified True, if user is verified @restriction_reason If non-empty, contains the reason, why access to this user must be restricted. Format of the string is "{type}: {description}". -{type} contains type of the restriction and at least one of the suffixes "-all", "-ios", "-android", "-wp", which describes platforms on which access should be restricted. For example, "terms-ios-android". {description} contains human-readable description of the restriction, which can be showed to the user //@have_access If false, the user is inaccessible and the only known information about it is inside this class. It can't be passed to any method except GetUser. Currently it can be false only for inaccessible authors of the channel posts @type Type of the user @language_code Bots only. IETF language tag of users language 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 language_code:string = User; @@ -299,12 +299,14 @@ channel id:int username:string date:int status:ChatMemberStatus anyone_can_invit //@restricted_count Number of restricted users in the channel, 0 if unknown //@banned_count Number of users banned from the channel, 0 if unknown //@can_get_members True, if members of the channel can be retrieved -//@can_set_username True, if channel can be made public +//@can_set_username True, if the channel can be made public +//@can_set_sticker_set True, if the channel sticker set can be changed +//@sticker_set_id Identifier of channel sticker set, or 0 if none //@invite_link Invite link for this channel //@pinned_message_id Identifier of the pinned message in the channel chat, or 0 if none //@migrated_from_group_id Identifier of the group, this supergroup migrated from, or 0 if none //@migrated_from_max_message_id Identifier of last message in the group chat migrated from, or 0 if none -channelFull description:string member_count:int administrator_count:int restricted_count:int banned_count:int can_get_members:Bool can_set_username:Bool invite_link:string pinned_message_id:int53 migrated_from_group_id:int migrated_from_max_message_id:int53 = ChannelFull; +channelFull description:string member_count:int administrator_count:int restricted_count:int banned_count:int can_get_members:Bool can_set_username:Bool can_set_sticker_set:Bool sticker_set_id:int64 invite_link:string pinned_message_id:int53 migrated_from_group_id:int migrated_from_max_message_id:int53 = ChannelFull; //@description Represents a secret chat @@ -361,6 +363,7 @@ messageIsFailedToSend = MessageSendState; //@can_be_deleted_only_for_self True, if message can be deleted only for self, other users will continue to see it //@can_be_deleted_for_everyone True, if message can be deleted for everyone //@is_post True, if message is channel post. All messages to broadcast channels are posts, all other messages are not posts +//@contains_unread_mention True, if message contains unread mention of the current user //@date Date when message was sent, unix time //@edit_date Date when message was edited last time, unix time //@forward_info Information about initial message sender, nullable @@ -372,13 +375,13 @@ messageIsFailedToSend = MessageSendState; //@views Number of times this message was viewed //@content Content of the message //@reply_markup Reply markup for the message, nullable -message id:int53 sender_user_id:int chat_id:int53 send_state:MessageSendState can_be_edited:Bool can_be_forwarded:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_everyone:Bool is_post:Bool date:int edit_date:int forward_info:MessageForwardInfo reply_to_message_id:int53 ttl:int ttl_expires_in:double via_bot_user_id:int author_signature:string views:int content:MessageContent reply_markup:ReplyMarkup = Message; +message id:int53 sender_user_id:int chat_id:int53 send_state:MessageSendState can_be_edited:Bool can_be_forwarded:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_everyone:Bool is_post:Bool contains_unread_mention:Bool date:int edit_date:int forward_info:MessageForwardInfo reply_to_message_id:int53 ttl:int ttl_expires_in:double via_bot_user_id:int author_signature:string views:int content:MessageContent reply_markup:ReplyMarkup = Message; //@description Contains list of messages @total_count Approximate total count of found messages @messages List of messages messages total_count:int messages:vector = Messages; //@description Contains list of found by search messages @messages List of messages @next_from_search_id Value to pass as from_search_id to get more results -foundMessages messages:vector next_from_search_id:long = FoundMessages; +foundMessages messages:vector next_from_search_id:int64 = FoundMessages; //@class NotificationSettingsScope @description Describes kinds of chat for which notification settings are applied @@ -412,11 +415,11 @@ chatTypePrivate user_id:int = ChatType; //@description Chat with zero or more other users @group_id Group identifier chatTypeGroup group_id:int = ChatType; -//@description Chat with unlimited number of members @channel_id Channel identifier -chatTypeChannel channel_id:int = ChatType; +//@description Chat with unlimited number of members @channel_id Channel identifier @is_supergroup True, if the channel is a supergroup and is not a broadcast +chatTypeChannel channel_id:int is_supergroup:Bool = ChatType; -//@description Secret chat with a user @secret_chat_id Secret chat identifier -chatTypeSecret secret_chat_id:int = ChatType; +//@description Secret chat with a user @secret_chat_id Secret chat identifier @user_id User identifier of the peer +chatTypeSecret secret_chat_id:int user_id:int = ChatType; //@description Chat (private chat or group chat or channel chat) @@ -430,11 +433,12 @@ chatTypeSecret secret_chat_id:int = ChatType; //@unread_count Count of unread messages in the chat //@last_read_inbox_message_id Identifier of last read incoming message //@last_read_outbox_message_id Identifier of last read outgoing message +//@unread_mention_count Count of unread messages with mention/reply in the chat //@notification_settings Notification settings for this chat //@reply_markup_message_id Identifier of the message from which reply markup need to be used or 0 if there is no default custom reply markup in the chat //@draft_message Draft of a message in the chat, nullable. parse_mode in input_message_text always will be null //@client_data Client specified data, associated with the chat. For example, chat position or local chat notification settings may be stored here. Persistent if message db is used -chat id:int53 type:ChatType title:string photo:chatPhoto top_message:message order:long is_pinned:Bool unread_count:int last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 notification_settings:notificationSettings reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat; +chat id:int53 type:ChatType title:string photo:chatPhoto top_message:message order:int64 is_pinned:Bool unread_count:int last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int notification_settings:notificationSettings reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat; //@description Represents list of chats @chat_ids List of chat identifiers chats chat_ids:vector = Chats; @@ -766,7 +770,7 @@ messageScreenshotTaken = MessageContent; messageChatSetTtl ttl:int = MessageContent; //@description New high score was achieved in a game @game_message_id Identifier of the message with the game, can be identifier of the deleted message @game_id Identifier of the game, may be different from the games presented in the message with the game @score New score -messageGameScore game_message_id:int53 game_id:long score:int = MessageContent; +messageGameScore game_message_id:int53 game_id:int64 score:int = MessageContent; //@description Payment completed @currency Currency for goods price @total_amount Goods total price in minimal quantity of the currency messagePaymentSuccessful currency:string total_amount:int53 = MessageContent; @@ -830,14 +834,13 @@ textParseModeMarkdown = TextParseMode; textParseModeHTML = TextParseMode; -//@class InputThumb @description Thumb to send along with a file, should be in jpeg format or webp format for stickers +//@description Contains a list ot text entities @entities The entities +textEntities entities:vector = TextEntities; -//@description Local file with the thumb @path Path to the file with the thumb, file should be less than 200KB @width Thumb width, usually shouldn't excceed 90. Use 0 if unknown @height Thumb height, usually shouldn't excceed 90. Use 0 if unknown -inputThumbLocal path:string width:int height:int = InputThumb; -//@description Generated thumb, should be less than 200KB @original_path Path to the original file @conversion String specifying conversion applied to the original file, should be persistent across application restart +//@description Thumb to send along with a file, should be in jpeg format or webp format for stickers and less than 200KB in size @thumb Thumb file to send, sending thumbs by file_id is currently not supported //@width Thumb width, usually shouldn't excceed 90. Use 0 if unknown @height Thumb height, usually shouldn't excceed 90. Use 0 if unknown -inputThumbGenerated original_path:string conversion:string width:int height:int = InputThumb; +inputThumb thumb:InputFile width:int height:int = InputThumb; //@class InputMessageContent @description Content of a message to send @@ -847,28 +850,28 @@ inputThumbGenerated original_path:string conversion:string width:int height:int inputMessageText text:string disable_web_page_preview:Bool clear_draft:Bool entities:vector parse_mode:TextParseMode = InputMessageContent; //@description Animation message @animation Animation file to send @thumb Animation thumb, if available @duration Duration of the animation in seconds @width Width of the animation, may be replaced by the server @height Height of the animation, may be replaced by the server @caption Animation caption, 0-200 characters -inputMessageAnimation animation:InputFile thumb:InputThumb duration:int width:int height:int caption:string = InputMessageContent; +inputMessageAnimation animation:InputFile thumb:inputThumb duration:int width:int height:int caption:string = InputMessageContent; //@description Audio message @audio Audio file to send @album_cover_thumb Thumb of the album's cover, if available @duration Duration of the audio in seconds, may be replaced by the server @title Title of the audio, 0-64 characters, may be replaced by the server //@performer Performer of the audio, 0-64 characters, may be replaced by the server @caption Audio caption, 0-200 characters -inputMessageAudio audio:InputFile album_cover_thumb:InputThumb duration:int title:string performer:string caption:string = InputMessageContent; +inputMessageAudio audio:InputFile album_cover_thumb:inputThumb duration:int title:string performer:string caption:string = InputMessageContent; //@description Document message @document Document to send @thumb Document thumb, if available @caption Document caption, 0-200 characters -inputMessageDocument document:InputFile thumb:InputThumb caption:string = InputMessageContent; +inputMessageDocument document:InputFile thumb:inputThumb caption:string = InputMessageContent; //@description Photo message @photo Photo to send @thumb Photo thumb to send, is sent to the other party in secret chats only @added_sticker_file_ids File identifiers of stickers added onto the photo @width Photo width @height Photo height @caption Photo caption, 0-200 characters //@ttl Photo TTL in seconds, 0-60. Non-zero TTL can be only specified in private chats -inputMessagePhoto photo:InputFile thumb:InputThumb added_sticker_file_ids:vector width:int height:int caption:string ttl:int = InputMessageContent; +inputMessagePhoto photo:InputFile thumb:inputThumb added_sticker_file_ids:vector width:int height:int caption:string ttl:int = InputMessageContent; //@description Sticker message @sticker Sticker to send @thumb Sticker thumb, if available @width Sticker width @height Sticker height -inputMessageSticker sticker:InputFile thumb:InputThumb width:int height:int = InputMessageContent; +inputMessageSticker sticker:InputFile thumb:inputThumb width:int height:int = InputMessageContent; //@description Video message @video Video to send @thumb Video thumb, if available @added_sticker_file_ids File identifiers of stickers added onto the video @duration Duration of the video in seconds @width Video width @height Video height @caption Video caption, 0-200 characters //@ttl Video TTL in seconds, 0-60. Non-zero TTL can be only specified in private chats -inputMessageVideo video:InputFile thumb:InputThumb added_sticker_file_ids:vector duration:int width:int height:int caption:string ttl:int = InputMessageContent; +inputMessageVideo video:InputFile thumb:inputThumb added_sticker_file_ids:vector duration:int width:int height:int caption:string ttl:int = InputMessageContent; //@description Video note message @video_note Video note to send @thumb Video thumb, if available @duration Duration of the video in seconds @length Video width and height, should be positive and not greater than 640 -inputMessageVideoNote video_note:InputFile thumb:InputThumb duration:int length:int = InputMessageContent; +inputMessageVideoNote video_note:InputFile thumb:inputThumb duration:int length:int = InputMessageContent; //@description Voice message @voice Voice file to send @duration Duration of the voice in seconds @waveform Waveform representation of the voice in 5-bit format @caption Voice caption, 0-200 characters inputMessageVoice voice:InputFile duration:int waveform:bytes caption:string = InputMessageContent; @@ -937,6 +940,12 @@ searchMessagesFilterVideoNote = SearchMessagesFilter; //@description Return only voice and video note messages searchMessagesFilterVoiceAndVideoNote = SearchMessagesFilter; +//@description Return only messages with mentions of current logged in user or which are replies to his messages +searchMessagesFilterMention = SearchMessagesFilter; + +//@description Return only messages with unread mentions of current logged in user or which are replies to his messages. When this filter is used result can't be additionally filtered by a query or a sender user +searchMessagesFilterUnreadMention = SearchMessagesFilter; + //@class ChatAction @description Describes different types of activity in a chat @@ -998,12 +1007,12 @@ stickerEmojis emojis:vector = StickerEmojis; //@description Represents sticker set @id Sticker set identifier @title Title of the sticker set @name Name of the sticker set @is_installed True if sticker set is installed by logged in user //@is_archived True if sticker set is archived. A sticker set can't be installed and archived simultaneously @is_official True if sticker set is official @is_masks True if stickers in the set are masks //@is_viewed True for viewed trending sticker set @stickers List of stickers in this set @emojis Lists of emojis corresponding to the stickers in the same order -stickerSet id:long title:string name:string is_installed:Bool is_archived:Bool is_official:Bool is_masks:Bool is_viewed:Bool stickers:vector emojis:vector = StickerSet; +stickerSet id:int64 title:string name:string is_installed:Bool is_archived:Bool is_official:Bool is_masks:Bool is_viewed:Bool stickers:vector emojis:vector = StickerSet; //@description Represents short information about sticker set @id Sticker set identifier @title Title of the sticker set @name Name of the sticker set @is_installed True if sticker set is installed by logged in user //@is_archived True if sticker set is archived. A sticker set can't be installed and archived simultaneously @is_official True if sticker set is official @is_masks True if stickers in the set are masks //@is_viewed True for viewed trending sticker set @size Total number of stickers in the set @covers Up to 5 first stickers from the set depending on the context. If client needs more stickers it should request full sticker set -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:vector = StickerSetInfo; +stickerSetInfo id:int64 title:string name:string is_installed:Bool is_archived:Bool is_official:Bool is_masks:Bool is_viewed:Bool size:int covers:vector = StickerSetInfo; //@description Represents list of sticker sets @total_count Approximate total count of found sticker sets @sets List of sticker sets stickerSets total_count:int sets:vector = StickerSets; @@ -1031,7 +1040,7 @@ callDiscardReasonHungUp = CallDiscardReason; callProtocol udp_p2p:Bool udp_reflector:Bool min_layer:int max_layer:int = CallProtocol; //@description Describes address of UDP reflectors @id Reflector identifier @ip IPv4 reflector address @ipv6 IPv6 reflector address @port Reflector port @peer_tag Connection peer tag -callConnection id:long ip:string ipv6:string port:int peer_tag:bytes = CallConnection; +callConnection id:int64 ip:string ipv6:string port:int peer_tag:bytes = CallConnection; //@description Contains call identifier @id Call identifier @@ -1190,7 +1199,7 @@ inlineQueryResultVoice id:string voice:voice title:string = InlineQueryResult; //@description Represents results of the inline query. Use sendInlineQueryResultMessage to send the result of the query @inline_query_id Unique identifier of the inline query @next_offset Offset for the next request. If it is empty, there is no more results @results Results of the query //@switch_pm_text If non-empty, this text should be shown on the button, which opens private chat with the bot and sends bot start message with parameter switch_pm_parameter @switch_pm_parameter Parameter for the bot start message -inlineQueryResults inline_query_id:long next_offset:string results:vector switch_pm_text:string switch_pm_parameter:string = InlineQueryResults; +inlineQueryResults inline_query_id:int64 next_offset:string results:vector switch_pm_text:string switch_pm_parameter:string = InlineQueryResults; //@class CallbackQueryPayload @description Represents payload of a callback query @@ -1246,16 +1255,16 @@ chatEventMemberPromoted user_id:int old_status:ChatMemberStatus new_status:ChatM //@description A chat member restricted/unrestircted or banned/unbanned @user_id Chat member user identifier @old_status Old chat member status @new_status New chat member status chatEventMemberRestricted user_id:int old_status:ChatMemberStatus new_status:ChatMemberStatus = ChatEventAction; -//@description Chat title changed @old_title Old title value @new_title New title value +//@description Chat title was changed @old_title Old title value @new_title New title value chatEventTitleChanged old_title:string new_title:string = ChatEventAction; -//@description Chat description changed @old_description Old description value @new_description New description value +//@description Chat description was changed @old_description Old description value @new_description New description value chatEventDescriptionChanged old_description:string new_description:string = ChatEventAction; -//@description Chat username changed @old_username Old username value @new_username New username value +//@description Chat username was changed @old_username Old username value @new_username New username value chatEventUsernameChanged old_username:string new_username:string = ChatEventAction; -//@description Chat photo changed @old_photo Old photo value @new_photo New photo value +//@description Chat photo was changed @old_photo Old photo value, nullable @new_photo New photo value, nullable chatEventPhotoChanged old_photo:chatPhoto new_photo:chatPhoto = ChatEventAction; //@description Supergroup channel chat anyone_can_invite setting was toggled @anyone_can_invite New value of anyone_can_invite @@ -1264,8 +1273,11 @@ chatEventInvitesToggled anyone_can_invite:Bool = ChatEventAction; //@description Broadcast channel chat sign_messages setting was toggled @sign_messages New value of sign_messages chatEventSignMessagesToggled sign_messages:Bool = ChatEventAction; +//@description Supergroup sticker set was changed @old_sticker_set_id Old identifier of chat sticker set, 0 if none @new_sticker_set_id New identifier of chat sticker set, 0 if none +chatEventStickerSetChanged old_sticker_set_id:int64 new_sticker_set_id:int64 = ChatEventAction; + //@description Represents a chat event @id Chat event identifier @date Date of the event, unix time @user_id Identifier of a user who made the action @action Action done by the user -chatEvent id:long date:int user_id:int action:ChatEventAction = ChatEvent; +chatEvent id:int64 date:int user_id:int action:ChatEventAction = ChatEvent; //@description Contains list of chat events @events The events chatEvents events:vector = ChatEvents; @@ -1374,7 +1386,7 @@ accountTtl days:int = AccountTtl; //@app_version Version of the application, provided by the application @is_official_app True, if the application is an official application or uses the app_id of some official application @device_model Model of a device application is runned on, provided by the application @platform Operating system application is runned on, provided by the application //@system_version Version of operating system application is runned on, provided by the application @log_in_date Date the user has logged in, unix time @last_active_date Date the session was used last time, unix time @ip An ip address from which session was created in a human-readable format //@country Two-letter country code from which session was created based on the ip @region Region code from which session was created based on the ip -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 log_in_date:int last_active_date:int ip:string country:string region:string = Session; +session id:int64 is_current:Bool app_id:int app_name:string app_version:string is_official_app:Bool device_model:string platform:string system_version:string log_in_date:int last_active_date:int ip:string country:string region:string = Session; //@description Contains list of sessions @sessions List of sessions sessions sessions:vector = Sessions; @@ -1534,6 +1546,9 @@ topChatCategoryInlineBots = TopChatCategory; topChatCategoryCalls = TopChatCategory; +//@description Contains some count @count The count +count count:int = Count; + //@description Contains some text @text The text text text:string = Text; @@ -1582,6 +1597,9 @@ updateMessageViews chat_id:int53 message_id:int53 views:int = Update; //@description Message content was opened. It makes voice messages listened, video note messages viewed and runs ttl timer @chat_id Chat identifier @message_id Message identifier updateOpenMessageContent chat_id:int53 message_id:int53 = Update; +//@description Message with an unread mention was read @chat_id Chat identifier @message_id Message identifier @unread_mention_count New number of unread mention messages left in the chat +updateMessageMentionRead chat_id:int53 message_id:int53 unread_mention_count:int = Update; + //@description New chat has been loaded/created. This update is guaranteed to come before chat identifier is returned to the client. Chat field changes will be reported through separate updates @chat The chat updateNewChat chat:chat = Update; @@ -1591,21 +1609,24 @@ updateChatTitle chat_id:int53 title:string = Update; //@description Chat photo was changed @chat_id Chat identifier @photo New chat photo, nullable updateChatPhoto chat_id:int53 photo:chatPhoto = Update; -//@description Top message of the chat has changed. If top_message is null then top message in the chat became unknown. Some new unknown messages might be added to the chat in that case @chat_id Chat identifier @top_message New top message of the chat, nullable -updateChatTopMessage chat_id:int53 top_message:message = Update; +//@description Top message of the chat has changed. If top_message is null then top message in the chat became unknown. Some new unknown messages might be added to the chat in that case @chat_id Chat identifier @top_message New top message of the chat, nullable @order New value of the chat order +updateChatTopMessage chat_id:int53 top_message:message order:int64 = Update; -//@description Order of the chat in the chat list has changed @chat_id Chat identifier @order New value of the order -updateChatOrder chat_id:int53 order:long = Update; +//@description Order of the chat in the chat list has changed. Instead of that update updateChatTopMessage, updateChatIsPinned or updateChatDraftMessage may be sent @chat_id Chat identifier @order New value of the order +updateChatOrder chat_id:int53 order:int64 = Update; -//@description Chat was pinned or unpinned @chat_id Chat identifier @is_pinned New value of is_pinned -updateChatIsPinned chat_id:int53 is_pinned:Bool = Update; +//@description Chat was pinned or unpinned @chat_id Chat identifier @is_pinned New value of is_pinned @order New value of the chat order +updateChatIsPinned chat_id:int53 is_pinned:Bool order:int64 = Update; -//@description Some incoming messages was read @chat_id Chat identifier @last_read_inbox_message_id Identifier of last read incoming message @unread_count Number of unread messages left in chat +//@description Some incoming messages was read @chat_id Chat identifier @last_read_inbox_message_id Identifier of last read incoming message @unread_count Number of unread messages left in the chat updateChatReadInbox chat_id:int53 last_read_inbox_message_id:int53 unread_count:int = Update; //@description Some outcoming messages was read @chat_id Chat identifier @last_read_outbox_message_id Identifier of last read outgoing message updateChatReadOutbox chat_id:int53 last_read_outbox_message_id:int53 = Update; +//@description Chat unread_mention_count has changed @chat_id Chat identifier @unread_mention_count Number of unread mention messages left in the chat +updateChatUnreadMentionCount chat_id:int53 unread_mention_count:int = Update; + //@description Notification settings for some chats was updated @scope Kinds of chats for which notification settings was updated @notification_settings New notification settings updateNotificationSettings scope:NotificationSettingsScope notification_settings:notificationSettings = Update; @@ -1613,8 +1634,8 @@ updateNotificationSettings scope:NotificationSettingsScope notification_settings //@chat_id Chat identifier @reply_markup_message_id Identifier of the message from which reply markup need to be used or 0 if there is no default custom reply markup in the chat updateChatReplyMarkup chat_id:int53 reply_markup_message_id:int53 = Update; -//@description Chat draft has changed. Be aware that the update may come in the currently open chat with the old content of the draft. If the user has changed the content of the draft, the update shouldn't be applied @chat_id Chat identifier @draft_message New chat draft_message, nullable -updateChatDraftMessage chat_id:int53 draft_message:draftMessage = Update; +//@description Chat draft has changed. Be aware that the update may come in the currently open chat with the old content of the draft. If the user has changed the content of the draft, the update shouldn't be applied @chat_id Chat identifier @draft_message New chat draft_message, nullable @order New value of the chat order +updateChatDraftMessage chat_id:int53 draft_message:draftMessage order:int64 = Update; //@description Some messages was deleted @chat_id Chat identifier @message_ids Identifiers of deleted message updateDeleteMessages chat_id:int53 message_ids:vector = Update; @@ -1657,7 +1678,7 @@ updateFile file:file = Update; //@description File generation process need to be started by the client @generation_id Unique identifier for the generation process @original_path Path to a file from which new file is generated, may be empty //@destination_path Path to a file which should be created and to which new file should be generated @conversion String specifying conversion applied to the original file -updateFileGenerationStart generation_id:long original_path:string destination_path:string conversion:string = Update; +updateFileGenerationStart generation_id:int64 original_path:string destination_path:string conversion:string = Update; //@description Informs that a file is being generated @file_id File identifier @size Expected size of the generated file @ready Number of bytes already generated. Negative number means that generation has failed and was terminated updateFileGenerationProgress file_id:int size:int ready:int = Update; @@ -1675,7 +1696,7 @@ updatePrivacy key:PrivacyKey rules:privacyRules = Update; updateOption name:string value:OptionValue = Update; //@description List of installed sticker sets was updated @is_masks True, if list of installed mask sticker sets was updated @sticker_set_ids New list of installed ordinary sticker sets -updateInstalledStickerSets is_masks:Bool sticker_set_ids:vector = Update; +updateInstalledStickerSets is_masks:Bool sticker_set_ids:vector = Update; //@description List of trending sticker sets was updated or some of them was viewed @sticker_sets New list of trending sticker sets updateTrendingStickerSets sticker_sets:stickerSets = Update; @@ -1683,6 +1704,9 @@ updateTrendingStickerSets sticker_sets:stickerSets = Update; //@description List of recently used stickers was updated @is_attached True, if the list of stickers attached to photo or video files was updated, otherwise the list of sent stickers is updated @sticker_ids New list of file identifiers of recently used stickers updateRecentStickers is_attached:Bool sticker_ids:vector = Update; +//@description List of favorite stickers was updated @sticker_ids New list of file identifiers of favorite stickers +updateFavoriteStickers sticker_ids:vector = Update; + //@description List of saved animations was updated @animation_ids New list of file identifiers of saved animations updateSavedAnimations animation_ids:vector = Update; @@ -1690,31 +1714,31 @@ updateSavedAnimations animation_ids:vector = Update; updateConnectionState state:ConnectionState = Update; //@description Bots only. New incoming inline query @id Unique query identifier @sender_user_id Identifier of the user who sent the query @user_location User location, provided by the client, nullable @query Text of the query @offset Offset of the first entry to return -updateNewInlineQuery id:long sender_user_id:int user_location:location query:string offset:string = Update; +updateNewInlineQuery id:int64 sender_user_id:int user_location:location query:string offset:string = Update; //@description Bots only. User has chosen a result of the inline query @sender_user_id Identifier of the user who sent the query @user_location User location, provided by the client, nullable @query Text of the query @result_id Identifier of the chosen result @inline_message_id Identifier of the sent inline message, if known updateNewChosenInlineResult sender_user_id:int user_location:location query:string result_id:string inline_message_id:string = Update; //@description Bots only. New incoming callback query @id Unique query identifier @sender_user_id Identifier of the user who sent the query @chat_id Identifier of the chat, in which the query was sent //@message_id Identifier of the message, from which the query is originated @chat_instance Identifier, uniquely corresponding to the chat a message was sent to @payload Query payload -updateNewCallbackQuery id:long sender_user_id:int chat_id:int53 message_id:int53 chat_instance:long payload:CallbackQueryPayload = Update; +updateNewCallbackQuery id:int64 sender_user_id:int chat_id:int53 message_id:int53 chat_instance:int64 payload:CallbackQueryPayload = Update; //@description Bots only. New incoming callback query from message sent via bot @id Unique query identifier @sender_user_id Identifier of the user who sent the query @inline_message_id Identifier of the inline message, from which the query is originated //@chat_instance Identifier, uniquely corresponding to the chat a message was sent to @payload Query payload -updateNewInlineCallbackQuery id:long sender_user_id:int inline_message_id:string chat_instance:long payload:CallbackQueryPayload = Update; +updateNewInlineCallbackQuery id:int64 sender_user_id:int inline_message_id:string chat_instance:int64 payload:CallbackQueryPayload = Update; //@description Bots only. New incoming shipping query. Only for invoices with flexible price @id Unique query identifier @sender_user_id Identifier of the user who sent the query @invoice_payload Invoice payload @shipping_address User shipping address -updateNewShippingQuery id:long sender_user_id:int invoice_payload:string shipping_address:shippingAddress = Update; +updateNewShippingQuery id:int64 sender_user_id:int invoice_payload:string shipping_address:shippingAddress = Update; //@description Bots only. New incoming pre-checkout query. Contains full information about checkout @id Unique query identifier @sender_user_id Identifier of the user who sent the query @currency Currency for goods price @total_amount Goods total price in minimal quantity of the currency //@invoice_payload Invoice payload @shipping_option_id Identifier of a choosed by user shipping option, may be empty if not applicable @order_info Information about the order, nullable -updateNewPreCheckoutQuery id:long sender_user_id:int currency:string total_amount:int53 invoice_payload:bytes shipping_option_id:string order_info:orderInfo = Update; +updateNewPreCheckoutQuery id:int64 sender_user_id:int currency:string total_amount:int53 invoice_payload:bytes shipping_option_id:string order_info:orderInfo = Update; //@description Bots only. New incoming event @event JSON-serialized event updateNewCustomEvent event:string = Update; //@description Bots only. New incoming query @id Query identifier @data JSON-serialized query data @timeout Query timeout -updateNewCustomQuery id:long data:string timeout:int = Update; +updateNewCustomQuery id:int64 data:string timeout:int = Update; //@description Tests only. A simple object containing just a number @value The number @@ -1836,7 +1860,7 @@ getFilePersistent persistent_file_id:string file_type:FileType = File; //@description Returns list of chats in the right order, chats are sorted by (order, chat_id) in decreasing order. For example, to get list of chats from the beginning, the offset_order should be equal 2^63 - 1 @offset_order Chat order to return chats from @offset_chat_id Chat identifier to return chats from //@limit Maximum number of chats to be returned. There may be less than limit chats returned even the end of the list is not reached -getChats offset_order:long offset_chat_id:int53 limit:int = Chats; +getChats offset_order:int64 offset_chat_id:int53 limit:int = Chats; //@description Searches public chat by its username. Currently only private and channel chats can be public. Returns chat if found, otherwise some error is returned @username Username to be resolved searchPublicChat username:string = Chat; @@ -1869,7 +1893,7 @@ getCommonChats user_id:int offset_chat_id:int53 limit:int = Chats; getCreatedPublicChats = Chats; -//@description Returns messages in a chat. Automatically calls openChat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true @chat_id Chat identifier +//@description Returns messages in a chat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true @chat_id Chat identifier //@from_message_id Identifier of the message near which we need a history, you can use 0 to get results from the beginning, i.e. from oldest to newest //@offset Specify 0 to get results exactly from from_message_id or negative offset to get specified message and some newer messages //@limit Maximum number of messages to be returned, should be positive and can't be greater than 100. If offset is negative, limit must be greater than -offset. There may be less than limit messages returned even the end of the history is not reached @@ -1879,10 +1903,14 @@ getChatHistory chat_id:int53 from_message_id:int53 offset:int limit:int only_loc //@description Deletes all messages in the chat. Can't be used for channel chats @chat_id Chat identifier @remove_from_chat_list Pass true, if chat should be removed from the chat list deleteChatHistory chat_id:int53 remove_from_chat_list:Bool = Ok; -//@description Searches for messages with given words in the chat. Returns result in reverse chronological order, i. e. in order of decreasing message_id. Doesn't work in secret chats with non-empty query (searchSecretMessages should be used instead) or without enabled message database @chat_id Chat identifier to search in -//@query Query to search for @sender_user_id If not 0, only messages sent by the specified user will be returned. Doesn't supported in secret chats @from_message_id Identifier of the message from which we need a history, you can use 0 to get results from the beginning -//@limit Maximum number of messages to be returned, can't be greater than 100. There may be less than limit messages returned even the end of the history is not reached @filter Filter for content of searched messages -searchChatMessages chat_id:int53 query:string sender_user_id:int from_message_id:int53 limit:int filter:SearchMessagesFilter = Messages; +//@description Searches for messages with given words in the chat. Returns result in reverse chronological order, i. e. in order of decreasing message_id. Doesn't work in secret chats with non-empty query (searchSecretMessages should be used instead) or without enabled message database @chat_id Chat identifier to search messages in +//@query Query to search for +//@sender_user_id If not 0, only messages sent by the specified user will be returned. Doesn't supported in secret chats +//@from_message_id Identifier of the message from which we need a history, you can use 0 to get results from the beginning +//@offset Specify 0 to get results exactly from from_message_id or negative offset to get specified message and some newer messages +//@limit Maximum number of messages to be returned, should be positive and can't be greater than 100. If offset is negative, limit must be greater than -offset. There may be less than limit messages returned even the end of the history is not reached +//@filter Filter for content of the searched messages +searchChatMessages chat_id:int53 query:string sender_user_id:int from_message_id:int53 offset:int limit:int filter:SearchMessagesFilter = Messages; //@description Searches for messages in all chats except secret chats. Returns result in reverse chronological order, i. e. in order of decreasing (date, chat_id, message_id) //@query Query to search for @@ -1894,7 +1922,7 @@ searchMessages query:string offset_date:int offset_chat_id:int53 offset_message_ //@description Searches for messages in secret chats. Returns result in reverse chronological order @chat_id Identifier of a chat to search in. Specify 0 to search in all secret chats @query Query to search for. If empty, searchChatMessages should be used instead //@from_search_id Identifier from the result of previous request, use 0 to get results from the beginning @limit Maximum number of messages to be returned, can't be greater than 100 @filter Filter for content of searched messages -searchSecretMessages chat_id:int53 query:string from_search_id:long limit:int filter:SearchMessagesFilter = FoundMessages; +searchSecretMessages chat_id:int53 query:string from_search_id:int64 limit:int filter:SearchMessagesFilter = FoundMessages; //@description Searches for call messages. Returns result in reverse chronological order, i. e. in order of decreasing message_id @from_message_id Identifier of the message from which to search, you can use 0 to get results from beginning //@limit Maximum number of messages to be returned, can't be greater than 100. There may be less than limit messages returned even the end of the history is not reached filter @only_missed If true, return only messages with missed calls @@ -1903,21 +1931,21 @@ searchCallMessages from_message_id:int53 limit:int only_missed:Bool = Messages; //@description Returns public HTTPS link to a message. Available only for messages in public channels @chat_id Identifier of the chat, message belongs to @message_id Identifier of the message getPublicMessageLink chat_id:int53 message_id:int53 = PublicMessageLink; -//@description Sends a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message @chat_id Chat to send message @reply_to_message_id Identifier of a message to reply to or 0 +//@description Sends a message. Returns sent message @chat_id Chat to send message @reply_to_message_id Identifier of a message to reply to or 0 //@disable_notification Pass true, to disable notification about the message, doesn't works in secret chats @from_background Pass true, if the message is sent from background //@reply_markup Bots only. Markup for replying to message @input_message_content Content of a message to send sendMessage chat_id:int53 reply_to_message_id:int53 disable_notification:Bool from_background:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message; -//@description Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message +//@description Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message //@bot_user_id Identifier of the bot @chat_id Identifier of the chat @parameter Hidden parameter sent to bot for deep linking (https://api.telegram.org/bots#deep-linking) sendBotStartMessage bot_user_id:int chat_id:int53 parameter:string = Message; -//@description Sends result of the inline query as a message. Returns sent message. UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message. Always clears chat draft message @chat_id Chat to send message @reply_to_message_id Identifier of a message to reply to or 0 +//@description Sends result of the inline query as a message. Returns sent message. Always clears chat draft message @chat_id Chat to send message @reply_to_message_id Identifier of a message to reply to or 0 //@disable_notification Pass true, to disable notification about the message, doesn't works in secret chats @from_background Pass true, if the message is sent from background //@query_id Identifier of the inline query @result_id Identifier of the inline result -sendInlineQueryResultMessage chat_id:int53 reply_to_message_id:int53 disable_notification:Bool from_background:Bool query_id:long result_id:string = Message; +sendInlineQueryResultMessage chat_id:int53 reply_to_message_id:int53 disable_notification:Bool from_background:Bool query_id:int64 result_id:string = Message; -//@description Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message. UpdateChatTopMessage will not be sent, so returned messages should be used to update chat top message +//@description Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message //@chat_id Identifier of a chat to forward messages @from_chat_id Identifier of a chat to forward from @message_ids Identifiers of messages to forward //@disable_notification Pass true, to disable notification about the message, doesn't works if messages are forwarded to secret chat @from_background Pass true, if the message is sent from background forwardMessages chat_id:int53 from_chat_id:int53 message_ids:vector disable_notification:Bool from_background:Bool = Messages; @@ -1957,6 +1985,16 @@ editInlineMessageCaption inline_message_id:string reply_markup:ReplyMarkup capti editInlineMessageReplyMarkup inline_message_id:string reply_markup:ReplyMarkup = Ok; +//@description Returns all mentions, hashtags, bot commands, URLs and emails contained in the text. Offline method. Can be called before authorization. Can be called synchronously @text Text to find entites in +getTextEntities text:string = TextEntities; + +//@description Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously @file_name Name of the file or path to the file +getFileMimeType file_name:string = Text; + +//@description Returns file's extension guessing only by its mime type. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously @mime_type Mime type of the file +getFileExtension mime_type:string = Text; + + //@description Sends inline query to a bot and returns its results. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots @bot_user_id Identifier of the bot send query to //@chat_id Identifier of the chat, where the query is sent @user_location User location, only if needed @query Text of the query @offset Offset of the first entry to return getInlineQueryResults bot_user_id:int chat_id:int53 user_location:location query:string offset:string = InlineQueryResults; @@ -1964,21 +2002,21 @@ getInlineQueryResults bot_user_id:int chat_id:int53 user_location:location query //@description Bots only. Sets result of an inline query @inline_query_id Identifier of the inline query @is_personal Does result of the query can be cached only for specified user //@results Results of the query @cache_time Allowed time to cache results of the query in seconds @next_offset Offset for the next inline query, pass empty string if there is no more results //@switch_pm_text If non-empty, this text should be shown on the button, which opens private chat with the bot and sends bot start message with parameter switch_pm_parameter @switch_pm_parameter Parameter for the bot start message -answerInlineQuery inline_query_id:long is_personal:Bool results:vector cache_time:int next_offset:string switch_pm_text:string switch_pm_parameter:string = Ok; +answerInlineQuery inline_query_id:int64 is_personal:Bool results:vector cache_time:int next_offset:string switch_pm_text:string switch_pm_parameter:string = Ok; //@description Sends callback query to a bot and returns answer to it. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots @chat_id Identifier of the chat with a message @message_id Identifier of the message, from which the query is originated @payload Query payload getCallbackQueryAnswer chat_id:int53 message_id:int53 payload:CallbackQueryPayload = CallbackQueryAnswer; //@description Bots only. Sets result of a callback query @callback_query_id Identifier of the callback query @text Text of the answer @show_alert If true, an alert should be shown to the user instead of a toast @url Url to be opened @cache_time Allowed time to cache result of the query in seconds -answerCallbackQuery callback_query_id:long text:string show_alert:Bool url:string cache_time:int = Ok; +answerCallbackQuery callback_query_id:int64 text:string show_alert:Bool url:string cache_time:int = Ok; //@description Bots only. Sets result of a shipping query @shipping_query_id Identifier of the shipping query @shipping_options Available shipping options @error_message Error message, empty on success -answerShippingQuery shipping_query_id:long shipping_options:vector error_message:string = Ok; +answerShippingQuery shipping_query_id:int64 shipping_options:vector error_message:string = Ok; //@description Bots only. Sets result of a pre checkout query @pre_checkout_query_id Identifier of the pre-checkout query @error_message Error message, empty on success -answerPreCheckoutQuery pre_checkout_query_id:long error_message:string = Ok; +answerPreCheckoutQuery pre_checkout_query_id:int64 error_message:string = Ok; //@description Bots only. Updates game score of the specified user in the game @chat_id Chat a message with the game belongs to @message_id Identifier of the message @edit_message True, if message should be edited @user_id User identifier @score New score @@ -2060,15 +2098,15 @@ toggleChatIsPinned chat_id:int53 is_pinned:Bool = Ok; //@description Changes client data associated with a chat @chat_id Chat identifier @client_data New value of client_data setChatClientData chat_id:int53 client_data:string = Ok; -//@description Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server -//@chat_id Chat identifier @user_id Identifier of the user to add @forward_limit Number of previous messages from chat to forward to new member, ignored for channel chats +//@description Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server +//@chat_id Chat identifier @user_id Identifier of the user to add @forward_limit Number of previous messages from chat to forward to new member, ignored for channel chats. Can't be greater than 300 addChatMember chat_id:int53 user_id:int forward_limit:int = Ok; -//@description Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +//@description Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Members can't be added to broadcast channel if it has more than 200 members. Members will not be added until chat state will be synchronized with the server //@chat_id Chat identifier @user_ids Identifiers of the users to add addChatMembers chat_id:int53 user_ids:vector = Ok; -//@description Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server. Status will not be changed if application is killed before it can send request to the server +//@description Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server //@chat_id Chat identifier @user_id Identifier of the user to edit status @status New status of the member in the chat changeChatMemberStatus chat_id:int53 user_id:int status:ChatMemberStatus = Ok; @@ -2101,10 +2139,10 @@ cancelUploadFile file_id:int = Ok; //@generation_id Identifier of the generation process //@size Full size of file in bytes, 0 if unknown. //@local_size Number of bytes already generated. Negative number means that generation has failed and should be terminated -setFileGenerationProgress generation_id:long size:int local_size:int = Ok; +setFileGenerationProgress generation_id:int64 size:int local_size:int = Ok; //@description Finishes file generation @generation_id Identifier of the generation process -finishFileGeneration generation_id:long = Ok; +finishFileGeneration generation_id:int64 = Ok; //@description Deletes a file from TDLib file cache @file_id Identifier of the file to delete deleteFile file_id:int = Ok; @@ -2116,7 +2154,7 @@ exportChatInviteLink chat_id:int53 = ChatInviteLink; //@description Checks chat invite link for validness and returns information about the corresponding chat @invite_link Invite link to check. Should begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/" or "https://telegram.dog/joinchat/" checkChatInviteLink invite_link:string = ChatInviteLinkInfo; -//@description Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server. Member will not be added if application is killed before it can send request to the server +//@description Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server //@invite_link Invite link to import. Should begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/" or "https://telegram.dog/joinchat/" importChatInviteLink invite_link:string = Ok; @@ -2128,7 +2166,7 @@ createCall user_id:int protocol:callProtocol = CallId; acceptCall call_id:int protocol:callProtocol = Ok; //@description Discards a call @call_id Call identifier @is_disconnected True, if users was disconnected @duration Call duration in seconds @connection_id Identifier of a connection used during the call -discardCall call_id:int is_disconnected:Bool duration:int connection_id:long = Ok; +discardCall call_id:int is_disconnected:Bool duration:int connection_id:int64 = Ok; //@description Sends call rating @call_id Call identifier @rating Call rating, 1-5 @comment Optional user comment if rating is less than 5 rateCall call_id:int rating:int comment:string = Ok; @@ -2157,19 +2195,25 @@ searchContacts query:string limit:int = Users; //@description Deletes users from contacts list @user_ids Identifiers of users to be deleted deleteContacts user_ids:vector = Ok; +//@description Returns total number of imported contacts +getImportedContactCount = Count; + +//@description Deletes all imported contacts +deleteImportedContacts = Ok; + //@description Returns profile photos of the user. Result of this query may be outdated: some photos may be already deleted @user_id User identifier @offset Photos to skip, must be non-negative @limit Maximum number of photos to be returned, can't be greater than 100 getUserProfilePhotos user_id:int offset:int limit:int = UserProfilePhotos; -//@description Returns stickers from installed ordinary sticker sets corresponding to the given emoji @emoji String representation of emoji. If empty, returns all known stickers @limit Maximum number of stickers to return +//@description Returns stickers from installed ordinary sticker sets corresponding to the given emoji. If emoji is not empty, elso favorite and recently used stickers may be returned @emoji String representation of emoji. If empty, returns all known stickers @limit Maximum number of stickers to return getStickers emoji:string limit:int = Stickers; //@description Returns list of installed sticker sets @is_masks Pass true to return mask sticker sets, pass false to return ordinary sticker sets getInstalledStickerSets is_masks:Bool = StickerSets; //@description Returns list of archived sticker sets @is_masks Pass true to return mask stickers sets, pass false to return ordinary sticker sets @offset_sticker_set_id Identifier of the sticker set from which return the result @limit Maximum number of sticker sets to return -getArchivedStickerSets is_masks:Bool offset_sticker_set_id:long limit:int = StickerSets; +getArchivedStickerSets is_masks:Bool offset_sticker_set_id:int64 limit:int = StickerSets; //@description Returns list of trending sticker sets getTrendingStickerSets = StickerSets; @@ -2178,24 +2222,24 @@ getTrendingStickerSets = StickerSets; getAttachedStickerSets file_id:int = StickerSets; //@description Returns information about sticker set by its identifier @set_id Identifier of the sticker set -getStickerSet set_id:long = StickerSet; +getStickerSet set_id:int64 = StickerSet; //@description Searches sticker set by its short name @name Name of the sticker set searchStickerSet name:string = StickerSet; //@description Installs/uninstalls or enables/archives sticker set @set_id Identifier of the sticker set @is_installed New value of is_installed @is_archived New value of is_archived. A sticker set can't be installed and archived simultaneously -changeStickerSet set_id:long is_installed:Bool is_archived:Bool = Ok; +changeStickerSet set_id:int64 is_installed:Bool is_archived:Bool = Ok; //@description Informs that some trending sticker sets are viewed by the user @sticker_set_ids Identifiers of viewed trending sticker sets -viewTrendingStickerSets sticker_set_ids:vector = Ok; +viewTrendingStickerSets sticker_set_ids:vector = Ok; //@description Changes the order of installed sticker sets @is_masks Pass true to change mask sticker sets order, pass false to change ordinary sticker sets order @sticker_set_ids Identifiers of installed sticker sets in the new right order -reorderInstalledStickerSets is_masks:Bool sticker_set_ids:vector = Ok; +reorderInstalledStickerSets is_masks:Bool sticker_set_ids:vector = Ok; //@description Returns list of recently used stickers @is_attached Pass true to return stickers and masks recently attached to photo or video files, pass false to return recently sent stickers getRecentStickers is_attached:Bool = Stickers; -//@description Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list +//@description Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list //@is_attached Pass true to add the sticker to the list of stickers recently attached to photo or video files, pass false to add the sticker to the list of recently sent stickers @sticker Sticker file to add addRecentSticker is_attached:Bool sticker:InputFile = Stickers; @@ -2205,6 +2249,16 @@ deleteRecentSticker is_attached:Bool sticker:InputFile = Ok; //@description Clears list of recently used stickers @is_attached Pass true to clear list of stickers recently attached to photo or video files, pass false to clear the list of recently sent stickers clearRecentStickers is_attached:Bool = Ok; +//@description Returns favorite stickers +getFavoriteStickers = Stickers; + +//@description Adds new sticker to the list of favorite stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list +//@sticker Sticker file to add +addFavoriteSticker sticker:InputFile = Ok; + +//@description Removes a sticker from the list of favorite stickers @sticker Sticker file to delete from the list +deleteFavoriteSticker sticker:InputFile = Ok; + //@description Returns emojis corresponding to a sticker @sticker Sticker file identifier getStickerEmojis sticker:InputFile = StickerEmojis; @@ -2216,7 +2270,7 @@ getSavedAnimations = Animations; //@animation Animation file to add. Only known to server animations (i. e. successfully sent via message) can be added to the list addSavedAnimation animation:InputFile = Ok; -//@description Removes animation from the list of saved animations @animation Animation file to delete +//@description Removes an animation from the list of saved animations @animation Animation file to delete deleteSavedAnimation animation:InputFile = Ok; @@ -2249,11 +2303,11 @@ setNotificationSettings scope:NotificationSettingsScope notification_settings:no resetAllNotificationSettings = Ok; -//@description Uploads new profile photo for logged in user. Photo will not change until change will be synchronized with the server. Photo will not be changed if application is killed before it can send request to the server. If something changes, updateUser will be sent @photo Profile photo to set. inputFileId and inputFilePersistentId may be unsupported +//@description Uploads new profile photo for logged in user. If something changes, updateUser will be sent @photo Profile photo to set. inputFileId and inputFilePersistentId may be unsupported setProfilePhoto photo:InputFile = Ok; //@description Deletes profile photo. If something changes, updateUser will be sent @profile_photo_id Identifier of profile photo to delete -deleteProfilePhoto profile_photo_id:long = Ok; +deleteProfilePhoto profile_photo_id:int64 = Ok; //@description Changes first and last names of logged in user. If something changes, updateUser will be sent @first_name New value of user first name, 1-255 characters @last_name New value of optional user last name, 0-255 characters changeName first_name:string last_name:string = Ok; @@ -2279,7 +2333,7 @@ checkChangePhoneNumberCode code:string = AuthState; getActiveSessions = Sessions; //@description Terminates another session of logged in user @session_id Session identifier -terminateSession session_id:long = Ok; +terminateSession session_id:int64 = Ok; //@description Terminates all other sessions of logged in user terminateAllOtherSessions = Ok; @@ -2292,6 +2346,9 @@ toggleGroupAdministrators group_id:int everyone_is_administrator:Bool = Ok; //@description Changes username of the channel. Needs creator privileges in the channel @channel_id Identifier of the channel @username New value of username. Use empty string to remove username changeChannelUsername channel_id:int username:string = Ok; +//@description Changes sticker set of the channel. Needs appropriate rights in the channel @channel_id Identifier of the channel @sticker_set_id New value of channel sticker set identifier. Use 0 to remove channel sticker set +setChannelStickerSet channel_id:int sticker_set_id:int64 = Ok; + //@description Gives or revokes right to invite new members to all current members of the channel. Needs appropriate rights in the channel. Available only for supergroups @channel_id Identifier of the channel @anyone_can_invite New value of anyone_can_invite toggleChannelInvites channel_id:int anyone_can_invite:Bool = Ok; @@ -2318,14 +2375,14 @@ getChannelMembers channel_id:int filter:ChannelMembersFilter offset:int limit:in deleteChannel channel_id:int = Ok; -//@description Closes secret chat @secret_chat_id Secret chat identifier +//@description Closes secret chat, effectively transfering its state to "Closed" @secret_chat_id Secret chat identifier closeSecretChat secret_chat_id:int = Ok; //@description Returns list of service actions taken by chat members and administrators in the last 48 hours, available only in channels. Requires administrator rights. Returns result in reverse chronological order, i. e. in order of decreasing event_id //@chat_id Chat identifier @query Search query to filter events @from_event_id Identifier of an event from which to return result, you can use 0 to get results from the latest events @limit Maximum number of events to return, can't be greater than 100 //@filters Types of events to return, defaults to all @user_ids User identifiers, which events to return, defaults to all users -getChatEventLog chat_id:int53 query:string from_event_id:long limit:int filters:chatEventLogFilters user_ids:vector = ChatEvents; +getChatEventLog chat_id:int53 query:string from_event_id:int64 limit:int filters:chatEventLogFilters user_ids:vector = ChatEvents; //@description Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy @chat_id Chat identifier of the Invoice message @message_id Message identifier @@ -2416,7 +2473,7 @@ getStorageStatisticsFast = StorageStatisticsFast; optimizeStorage size:int53 ttl:int count:int immunity_delay:int file_types:vector chat_ids:vector exclude_chat_ids:vector chat_limit:int = StorageStatistics; -//@description Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. Network type is used to check if library can use network at all and for collecting detailed network data usage statistics @type New network type, defaults to networkTypeNone +//@description Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. -Network type is used to check if library can use network at all and for collecting detailed network data usage statistics @type New network type, defaults to networkTypeNone setNetworkType type:NetworkType = Ok; //@description Returns network data usage statistics. Can be called before authorization @only_current If true, returns only data for the current library launch @@ -2454,7 +2511,7 @@ deleteStickerFromSet sticker:InputFile = Ok; sendCustomRequest method:string parameters:string = CustomRequestResult; //@description Bots only. Answers a custom query @custom_query_id Identifier of a custom query @data JSON-serialized answer to the query -answerCustomQuery custom_query_id:long data:string = Ok; +answerCustomQuery custom_query_id:int64 data:string = Ok; //@description Returns Ok after specified amount of the time passed. Can be called before authorization @seconds Number of seconds before that function returns