@grom.js/bot-api-spec 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +37 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/bot-api/methods.gen.ts
|
|
2
2
|
const getUpdates = {
|
|
3
3
|
name: "getUpdates",
|
|
4
|
-
description: { markdown: "Use this method to receive incoming updates using long polling ([wiki](https://en.wikipedia.org/wiki/Push_technology#Long_polling)). Returns an Array of [Update](https://core.telegram.org/bots/api#update) objects
|
|
4
|
+
description: { markdown: "Use this method to receive incoming updates using long polling ([wiki](https://en.wikipedia.org/wiki/Push_technology#Long_polling)). Returns an Array of [Update](https://core.telegram.org/bots/api#update) objects.\n\n> **Notes** \n> **1.** This method will not work if an outgoing webhook is set up. \n> **2.** In order to avoid getting duplicate updates, recalculate _offset_ after each server response." },
|
|
5
5
|
parameters: [
|
|
6
6
|
{
|
|
7
7
|
name: "offset",
|
|
@@ -45,7 +45,7 @@ const getUpdates = {
|
|
|
45
45
|
};
|
|
46
46
|
const setWebhook = {
|
|
47
47
|
name: "setWebhook",
|
|
48
|
-
description: { markdown: "Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized [Update](https://core.telegram.org/bots/api#update). In case of an unsuccessful request (a request with response [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) different from `2XY`), we will repeat the request and give up after a reasonable amount of attempts. Returns _True_ on success
|
|
48
|
+
description: { markdown: "Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized [Update](https://core.telegram.org/bots/api#update). In case of an unsuccessful request (a request with response [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) different from `2XY`), we will repeat the request and give up after a reasonable amount of attempts. Returns _True_ on success.\n\nIf you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter _secret\\_token_. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.\n\n> **Notes** \n> **1.** You will not be able to receive updates using [getUpdates](https://core.telegram.org/bots/api#getupdates) for as long as an outgoing webhook is set up. \n> **2.** To use a self-signed certificate, you need to upload your [public key certificate](https://core.telegram.org/bots/self-signed) using _certificate_ parameter. Please upload as InputFile, sending a String will not work. \n> **3.** Ports currently supported _for webhooks_: **443, 80, 88, 8443**.\n> \n> If you're having any trouble setting up webhooks, please check out this [amazing guide to webhooks](https://core.telegram.org/bots/webhooks)." },
|
|
49
49
|
parameters: [
|
|
50
50
|
{
|
|
51
51
|
name: "url",
|
|
@@ -869,7 +869,7 @@ const sendPhoto = {
|
|
|
869
869
|
};
|
|
870
870
|
const sendAudio = {
|
|
871
871
|
name: "sendAudio",
|
|
872
|
-
description: { markdown: "Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent [Message](https://core.telegram.org/bots/api#message) is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future
|
|
872
|
+
description: { markdown: "Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent [Message](https://core.telegram.org/bots/api#message) is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.\n\nFor sending voice messages, use the [sendVoice](https://core.telegram.org/bots/api#sendvoice) method instead." },
|
|
873
873
|
parameters: [
|
|
874
874
|
{
|
|
875
875
|
name: "business_connection_id",
|
|
@@ -3122,7 +3122,7 @@ const sendDice = {
|
|
|
3122
3122
|
};
|
|
3123
3123
|
const sendChatAction = {
|
|
3124
3124
|
name: "sendChatAction",
|
|
3125
|
-
description: { markdown: "Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns _True_ on success
|
|
3125
|
+
description: { markdown: "Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns _True_ on success.\n\n> Example: The [ImageBot](https://t.me/imagebot) needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use [sendChatAction](https://core.telegram.org/bots/api#sendchataction) with _action_ = _upload\\_photo_. The user will see a “sending photo” status for the bot.\n\nWe only recommend using this method when a response from the bot will take a **noticeable** amount of time to arrive." },
|
|
3126
3126
|
parameters: [
|
|
3127
3127
|
{
|
|
3128
3128
|
name: "business_connection_id",
|
|
@@ -3272,7 +3272,7 @@ const setUserEmojiStatus = {
|
|
|
3272
3272
|
};
|
|
3273
3273
|
const getFile = {
|
|
3274
3274
|
name: "getFile",
|
|
3275
|
-
description: { markdown: "Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a [File](https://core.telegram.org/bots/api#file) object is returned. The file can then be downloaded via the link `https://api.telegram.org/file/bot<token>/<file_path>`, where `<file_path>` is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling [getFile](https://core.telegram.org/bots/api#getfile) again
|
|
3275
|
+
description: { markdown: "Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a [File](https://core.telegram.org/bots/api#file) object is returned. The file can then be downloaded via the link `https://api.telegram.org/file/bot<token>/<file_path>`, where `<file_path>` is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling [getFile](https://core.telegram.org/bots/api#getfile) again.\n\n**Note:** This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received." },
|
|
3276
3276
|
parameters: [{
|
|
3277
3277
|
name: "file_id",
|
|
3278
3278
|
type: { type: "str" },
|
|
@@ -3671,7 +3671,7 @@ const setChatPermissions = {
|
|
|
3671
3671
|
};
|
|
3672
3672
|
const exportChatInviteLink = {
|
|
3673
3673
|
name: "exportChatInviteLink",
|
|
3674
|
-
description: { markdown: "Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as _String_ on success
|
|
3674
|
+
description: { markdown: "Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as _String_ on success.\n\n> Note: Each administrator in a chat generates their own invite links. Bots can't use invite links generated by other administrators. If you want your bot to work with invite links, it will need to generate its own link using [exportChatInviteLink](https://core.telegram.org/bots/api#exportchatinvitelink) or by calling the [getChat](https://core.telegram.org/bots/api#getchat) method. If your bot needs to generate a new primary invite link replacing its previous one, use [exportChatInviteLink](https://core.telegram.org/bots/api#exportchatinvitelink) again." },
|
|
3675
3675
|
parameters: [{
|
|
3676
3676
|
name: "chat_id",
|
|
3677
3677
|
type: {
|
|
@@ -4561,7 +4561,7 @@ const unpinAllGeneralForumTopicMessages = {
|
|
|
4561
4561
|
};
|
|
4562
4562
|
const answerCallbackQuery = {
|
|
4563
4563
|
name: "answerCallbackQuery",
|
|
4564
|
-
description: { markdown: "Use this method to send answers to callback queries sent from [inline keyboards](https://core.telegram.org/bots/features#inline-keyboards). The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, _True_ is returned
|
|
4564
|
+
description: { markdown: "Use this method to send answers to callback queries sent from [inline keyboards](https://core.telegram.org/bots/features#inline-keyboards). The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, _True_ is returned.\n\n> Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via [@BotFather](https://t.me/botfather) and accept the terms. Otherwise, you may use links like `t.me/your_bot?start=XXXX` that open your bot with a parameter." },
|
|
4565
4565
|
parameters: [
|
|
4566
4566
|
{
|
|
4567
4567
|
name: "callback_query_id",
|
|
@@ -7656,7 +7656,7 @@ const editUserStarSubscription = {
|
|
|
7656
7656
|
};
|
|
7657
7657
|
const setPassportDataErrors = {
|
|
7658
7658
|
name: "setPassportDataErrors",
|
|
7659
|
-
description: { markdown: "Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns _True_ on success
|
|
7659
|
+
description: { markdown: "Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns _True_ on success.\n\nUse this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues." },
|
|
7660
7660
|
parameters: [{
|
|
7661
7661
|
name: "user_id",
|
|
7662
7662
|
type: { type: "int32" },
|
|
@@ -7834,7 +7834,7 @@ const setGameScore = {
|
|
|
7834
7834
|
};
|
|
7835
7835
|
const getGameHighScores = {
|
|
7836
7836
|
name: "getGameHighScores",
|
|
7837
|
-
description: { markdown: "Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of [GameHighScore](https://core.telegram.org/bots/api#gamehighscore) objects
|
|
7837
|
+
description: { markdown: "Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of [GameHighScore](https://core.telegram.org/bots/api#gamehighscore) objects.\n\n> This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change." },
|
|
7838
7838
|
parameters: [
|
|
7839
7839
|
{
|
|
7840
7840
|
name: "user_id",
|
|
@@ -9973,7 +9973,7 @@ const InaccessibleMessage = t({
|
|
|
9973
9973
|
});
|
|
9974
9974
|
const MaybeInaccessibleMessage = t({
|
|
9975
9975
|
name: "MaybeInaccessibleMessage",
|
|
9976
|
-
description: { markdown: "This object describes a message that can be inaccessible to the bot. It can be one of
|
|
9976
|
+
description: { markdown: "This object describes a message that can be inaccessible to the bot. It can be one of\n\n- [Message](https://core.telegram.org/bots/api#message)\n- [InaccessibleMessage](https://core.telegram.org/bots/api#inaccessiblemessage)" },
|
|
9977
9977
|
oneOf: [{
|
|
9978
9978
|
type: "api-type",
|
|
9979
9979
|
name: "Message"
|
|
@@ -10412,7 +10412,7 @@ const ReplyParameters = t({
|
|
|
10412
10412
|
});
|
|
10413
10413
|
const MessageOrigin = t({
|
|
10414
10414
|
name: "MessageOrigin",
|
|
10415
|
-
description: { markdown: "This object describes the origin of a message. It can be one of
|
|
10415
|
+
description: { markdown: "This object describes the origin of a message. It can be one of\n\n- [MessageOriginUser](https://core.telegram.org/bots/api#messageoriginuser)\n- [MessageOriginHiddenUser](https://core.telegram.org/bots/api#messageoriginhiddenuser)\n- [MessageOriginChat](https://core.telegram.org/bots/api#messageoriginchat)\n- [MessageOriginChannel](https://core.telegram.org/bots/api#messageoriginchannel)" },
|
|
10416
10416
|
oneOf: [
|
|
10417
10417
|
{
|
|
10418
10418
|
type: "api-type",
|
|
@@ -11035,7 +11035,7 @@ const PaidMediaInfo = t({
|
|
|
11035
11035
|
});
|
|
11036
11036
|
const PaidMedia = t({
|
|
11037
11037
|
name: "PaidMedia",
|
|
11038
|
-
description: { markdown: "This object describes paid media. Currently, it can be one of
|
|
11038
|
+
description: { markdown: "This object describes paid media. Currently, it can be one of\n\n- [PaidMediaPreview](https://core.telegram.org/bots/api#paidmediapreview)\n- [PaidMediaPhoto](https://core.telegram.org/bots/api#paidmediaphoto)\n- [PaidMediaVideo](https://core.telegram.org/bots/api#paidmediavideo)" },
|
|
11039
11039
|
oneOf: [
|
|
11040
11040
|
{
|
|
11041
11041
|
type: "api-type",
|
|
@@ -11868,7 +11868,7 @@ const ChatBoostAdded = t({
|
|
|
11868
11868
|
});
|
|
11869
11869
|
const BackgroundFill = t({
|
|
11870
11870
|
name: "BackgroundFill",
|
|
11871
|
-
description: { markdown: "This object describes the way a background is filled based on the selected colors. Currently, it can be one of
|
|
11871
|
+
description: { markdown: "This object describes the way a background is filled based on the selected colors. Currently, it can be one of\n\n- [BackgroundFillSolid](https://core.telegram.org/bots/api#backgroundfillsolid)\n- [BackgroundFillGradient](https://core.telegram.org/bots/api#backgroundfillgradient)\n- [BackgroundFillFreeformGradient](https://core.telegram.org/bots/api#backgroundfillfreeformgradient)" },
|
|
11872
11872
|
oneOf: [
|
|
11873
11873
|
{
|
|
11874
11874
|
type: "api-type",
|
|
@@ -11957,7 +11957,7 @@ const BackgroundFillFreeformGradient = t({
|
|
|
11957
11957
|
});
|
|
11958
11958
|
const BackgroundType = t({
|
|
11959
11959
|
name: "BackgroundType",
|
|
11960
|
-
description: { markdown: "This object describes the type of a background. Currently, it can be one of
|
|
11960
|
+
description: { markdown: "This object describes the type of a background. Currently, it can be one of\n\n- [BackgroundTypeFill](https://core.telegram.org/bots/api#backgroundtypefill)\n- [BackgroundTypeWallpaper](https://core.telegram.org/bots/api#backgroundtypewallpaper)\n- [BackgroundTypePattern](https://core.telegram.org/bots/api#backgroundtypepattern)\n- [BackgroundTypeChatTheme](https://core.telegram.org/bots/api#backgroundtypechattheme)" },
|
|
11961
11961
|
oneOf: [
|
|
11962
11962
|
{
|
|
11963
11963
|
type: "api-type",
|
|
@@ -12960,7 +12960,7 @@ const UserProfilePhotos = t({
|
|
|
12960
12960
|
});
|
|
12961
12961
|
const File = t({
|
|
12962
12962
|
name: "File",
|
|
12963
|
-
description: { markdown: "This object represents a file ready to be downloaded. The file can be downloaded via the link `https://api.telegram.org/file/bot<token>/<file_path>`. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling [getFile](https://core.telegram.org/bots/api#getfile)
|
|
12963
|
+
description: { markdown: "This object represents a file ready to be downloaded. The file can be downloaded via the link `https://api.telegram.org/file/bot<token>/<file_path>`. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling [getFile](https://core.telegram.org/bots/api#getfile).\n\n> The maximum file size to download is 20 MB" },
|
|
12964
12964
|
fields: [
|
|
12965
12965
|
{
|
|
12966
12966
|
name: "file_id",
|
|
@@ -13062,7 +13062,7 @@ const ReplyKeyboardMarkup = t({
|
|
|
13062
13062
|
});
|
|
13063
13063
|
const KeyboardButton = t({
|
|
13064
13064
|
name: "KeyboardButton",
|
|
13065
|
-
description: { markdown: "This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, _String_ can be used instead of this object to specify the button text
|
|
13065
|
+
description: { markdown: "This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, _String_ can be used instead of this object to specify the button text.\n\n**Note:** _request\\_users_ and _request\\_chat_ options will only work in Telegram versions released after 3 February, 2023. Older clients will display _unsupported message_." },
|
|
13066
13066
|
fields: [
|
|
13067
13067
|
{
|
|
13068
13068
|
name: "text",
|
|
@@ -13422,7 +13422,7 @@ const InlineKeyboardButton = t({
|
|
|
13422
13422
|
});
|
|
13423
13423
|
const LoginUrl = t({
|
|
13424
13424
|
name: "LoginUrl",
|
|
13425
|
-
description: { markdown: "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the [Telegram Login Widget](https://core.telegram.org/widgets/login) when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in
|
|
13425
|
+
description: { markdown: "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the [Telegram Login Widget](https://core.telegram.org/widgets/login) when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\n\n[](https://core.telegram.org/file/811140015/1734/8VZFkwWXalM.97872/6127fa62d8a0bf2b3c)\n\nTelegram apps support these buttons as of [version 5.7](https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots).\n\n> Sample bot: [@discussbot](https://t.me/discussbot)" },
|
|
13426
13426
|
fields: [
|
|
13427
13427
|
{
|
|
13428
13428
|
name: "url",
|
|
@@ -13508,7 +13508,7 @@ const CopyTextButton = t({
|
|
|
13508
13508
|
});
|
|
13509
13509
|
const CallbackQuery = t({
|
|
13510
13510
|
name: "CallbackQuery",
|
|
13511
|
-
description: { markdown: "This object represents an incoming callback query from a callback button in an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards). If the button that originated the query was attached to a message sent by the bot, the field _message_ will be present. If the button was attached to a message sent via the bot (in [inline mode](https://core.telegram.org/bots/api#inline-mode)), the field _inline\\_message\\_id_ will be present. Exactly one of the fields _data_ or _game\\_short\\_name_ will be present
|
|
13511
|
+
description: { markdown: "This object represents an incoming callback query from a callback button in an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards). If the button that originated the query was attached to a message sent by the bot, the field _message_ will be present. If the button was attached to a message sent via the bot (in [inline mode](https://core.telegram.org/bots/api#inline-mode)), the field _inline\\_message\\_id_ will be present. Exactly one of the fields _data_ or _game\\_short\\_name_ will be present.\n\n> **NOTE:** After the user presses a callback button, Telegram clients will display a progress bar until you call [answerCallbackQuery](https://core.telegram.org/bots/api#answercallbackquery). It is, therefore, necessary to react by calling [answerCallbackQuery](https://core.telegram.org/bots/api#answercallbackquery) even if no notification to the user is needed (e.g., without specifying any of the optional parameters)." },
|
|
13512
13512
|
fields: [
|
|
13513
13513
|
{
|
|
13514
13514
|
name: "id",
|
|
@@ -13569,7 +13569,7 @@ const CallbackQuery = t({
|
|
|
13569
13569
|
});
|
|
13570
13570
|
const ForceReply = t({
|
|
13571
13571
|
name: "ForceReply",
|
|
13572
|
-
description: { markdown: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice [privacy mode](https://core.telegram.org/bots/features#privacy-mode). Not supported in channels and for messages sent on behalf of a Telegram Business account
|
|
13572
|
+
description: { markdown: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice [privacy mode](https://core.telegram.org/bots/features#privacy-mode). Not supported in channels and for messages sent on behalf of a Telegram Business account.\n\n> **Example:** A [poll bot](https://t.me/PollBot) for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll:\n> \n> - Explain the user how to send a command with parameters (e.g. /newpoll question answer1 answer2). May be appealing for hardcore users but lacks modern day polish.\n> - Guide the user through a step-by-step process. 'Please send me your question', 'Cool, now let's add the first answer option', 'Great. Keep adding answer options, then send /done when you're ready'.\n> \n> The last option is definitely more attractive. And if you use [ForceReply](https://core.telegram.org/bots/api#forcereply) in your bot's questions, it will receive the user's answers even if it only receives replies, commands and mentions - without any extra work for the user." },
|
|
13573
13573
|
fields: [
|
|
13574
13574
|
{
|
|
13575
13575
|
name: "force_reply",
|
|
@@ -13914,7 +13914,7 @@ const ChatMemberUpdated = t({
|
|
|
13914
13914
|
});
|
|
13915
13915
|
const ChatMember = t({
|
|
13916
13916
|
name: "ChatMember",
|
|
13917
|
-
description: { markdown: "This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported
|
|
13917
|
+
description: { markdown: "This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:\n\n- [ChatMemberOwner](https://core.telegram.org/bots/api#chatmemberowner)\n- [ChatMemberAdministrator](https://core.telegram.org/bots/api#chatmemberadministrator)\n- [ChatMemberMember](https://core.telegram.org/bots/api#chatmembermember)\n- [ChatMemberRestricted](https://core.telegram.org/bots/api#chatmemberrestricted)\n- [ChatMemberLeft](https://core.telegram.org/bots/api#chatmemberleft)\n- [ChatMemberBanned](https://core.telegram.org/bots/api#chatmemberbanned)" },
|
|
13918
13918
|
oneOf: [
|
|
13919
13919
|
{
|
|
13920
13920
|
type: "api-type",
|
|
@@ -14705,7 +14705,7 @@ const LocationAddress = t({
|
|
|
14705
14705
|
});
|
|
14706
14706
|
const StoryAreaType = t({
|
|
14707
14707
|
name: "StoryAreaType",
|
|
14708
|
-
description: { markdown: "Describes the type of a clickable area on a story. Currently, it can be one of
|
|
14708
|
+
description: { markdown: "Describes the type of a clickable area on a story. Currently, it can be one of\n\n- [StoryAreaTypeLocation](https://core.telegram.org/bots/api#storyareatypelocation)\n- [StoryAreaTypeSuggestedReaction](https://core.telegram.org/bots/api#storyareatypesuggestedreaction)\n- [StoryAreaTypeLink](https://core.telegram.org/bots/api#storyareatypelink)\n- [StoryAreaTypeWeather](https://core.telegram.org/bots/api#storyareatypeweather)\n- [StoryAreaTypeUniqueGift](https://core.telegram.org/bots/api#storyareatypeuniquegift)" },
|
|
14709
14709
|
oneOf: [
|
|
14710
14710
|
{
|
|
14711
14711
|
type: "api-type",
|
|
@@ -14916,7 +14916,7 @@ const ChatLocation = t({
|
|
|
14916
14916
|
});
|
|
14917
14917
|
const ReactionType = t({
|
|
14918
14918
|
name: "ReactionType",
|
|
14919
|
-
description: { markdown: "This object describes the type of a reaction. Currently, it can be one of
|
|
14919
|
+
description: { markdown: "This object describes the type of a reaction. Currently, it can be one of\n\n- [ReactionTypeEmoji](https://core.telegram.org/bots/api#reactiontypeemoji)\n- [ReactionTypeCustomEmoji](https://core.telegram.org/bots/api#reactiontypecustomemoji)\n- [ReactionTypePaid](https://core.telegram.org/bots/api#reactiontypepaid)" },
|
|
14920
14920
|
oneOf: [
|
|
14921
14921
|
{
|
|
14922
14922
|
type: "api-type",
|
|
@@ -15549,7 +15549,7 @@ const UniqueGiftInfo = t({
|
|
|
15549
15549
|
});
|
|
15550
15550
|
const OwnedGift = t({
|
|
15551
15551
|
name: "OwnedGift",
|
|
15552
|
-
description: { markdown: "This object describes a gift received and owned by a user or a chat. Currently, it can be one of
|
|
15552
|
+
description: { markdown: "This object describes a gift received and owned by a user or a chat. Currently, it can be one of\n\n- [OwnedGiftRegular](https://core.telegram.org/bots/api#ownedgiftregular)\n- [OwnedGiftUnique](https://core.telegram.org/bots/api#ownedgiftunique)" },
|
|
15553
15553
|
oneOf: [{
|
|
15554
15554
|
type: "api-type",
|
|
15555
15555
|
name: "OwnedGiftRegular"
|
|
@@ -15863,7 +15863,7 @@ const BotCommand = t({
|
|
|
15863
15863
|
});
|
|
15864
15864
|
const BotCommandScope = t({
|
|
15865
15865
|
name: "BotCommandScope",
|
|
15866
|
-
description: { markdown: "This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported
|
|
15866
|
+
description: { markdown: "This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:\n\n- [BotCommandScopeDefault](https://core.telegram.org/bots/api#botcommandscopedefault)\n- [BotCommandScopeAllPrivateChats](https://core.telegram.org/bots/api#botcommandscopeallprivatechats)\n- [BotCommandScopeAllGroupChats](https://core.telegram.org/bots/api#botcommandscopeallgroupchats)\n- [BotCommandScopeAllChatAdministrators](https://core.telegram.org/bots/api#botcommandscopeallchatadministrators)\n- [BotCommandScopeChat](https://core.telegram.org/bots/api#botcommandscopechat)\n- [BotCommandScopeChatAdministrators](https://core.telegram.org/bots/api#botcommandscopechatadministrators)\n- [BotCommandScopeChatMember](https://core.telegram.org/bots/api#botcommandscopechatmember)" },
|
|
15867
15867
|
oneOf: [
|
|
15868
15868
|
{
|
|
15869
15869
|
type: "api-type",
|
|
@@ -16044,7 +16044,7 @@ const BotShortDescription = t({
|
|
|
16044
16044
|
});
|
|
16045
16045
|
const MenuButton = t({
|
|
16046
16046
|
name: "MenuButton",
|
|
16047
|
-
description: { markdown: "This object describes the bot's menu button in a private chat. It should be one of
|
|
16047
|
+
description: { markdown: "This object describes the bot's menu button in a private chat. It should be one of\n\n- [MenuButtonCommands](https://core.telegram.org/bots/api#menubuttoncommands)\n- [MenuButtonWebApp](https://core.telegram.org/bots/api#menubuttonwebapp)\n- [MenuButtonDefault](https://core.telegram.org/bots/api#menubuttondefault)\n\nIf a menu button other than [MenuButtonDefault](https://core.telegram.org/bots/api#menubuttondefault) is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands." },
|
|
16048
16048
|
oneOf: [
|
|
16049
16049
|
{
|
|
16050
16050
|
type: "api-type",
|
|
@@ -16114,7 +16114,7 @@ const MenuButtonDefault = t({
|
|
|
16114
16114
|
});
|
|
16115
16115
|
const ChatBoostSource = t({
|
|
16116
16116
|
name: "ChatBoostSource",
|
|
16117
|
-
description: { markdown: "This object describes the source of a chat boost. It can be one of
|
|
16117
|
+
description: { markdown: "This object describes the source of a chat boost. It can be one of\n\n- [ChatBoostSourcePremium](https://core.telegram.org/bots/api#chatboostsourcepremium)\n- [ChatBoostSourceGiftCode](https://core.telegram.org/bots/api#chatboostsourcegiftcode)\n- [ChatBoostSourceGiveaway](https://core.telegram.org/bots/api#chatboostsourcegiveaway)" },
|
|
16118
16118
|
oneOf: [
|
|
16119
16119
|
{
|
|
16120
16120
|
type: "api-type",
|
|
@@ -16586,7 +16586,7 @@ const ResponseParameters = t({
|
|
|
16586
16586
|
});
|
|
16587
16587
|
const InputMedia = t({
|
|
16588
16588
|
name: "InputMedia",
|
|
16589
|
-
description: { markdown: "This object represents the content of a media message to be sent. It should be one of
|
|
16589
|
+
description: { markdown: "This object represents the content of a media message to be sent. It should be one of\n\n- [InputMediaAnimation](https://core.telegram.org/bots/api#inputmediaanimation)\n- [InputMediaDocument](https://core.telegram.org/bots/api#inputmediadocument)\n- [InputMediaAudio](https://core.telegram.org/bots/api#inputmediaaudio)\n- [InputMediaPhoto](https://core.telegram.org/bots/api#inputmediaphoto)\n- [InputMediaVideo](https://core.telegram.org/bots/api#inputmediavideo)" },
|
|
16590
16590
|
oneOf: [
|
|
16591
16591
|
{
|
|
16592
16592
|
type: "api-type",
|
|
@@ -17008,7 +17008,7 @@ const InputMediaDocument = t({
|
|
|
17008
17008
|
});
|
|
17009
17009
|
const InputPaidMedia = t({
|
|
17010
17010
|
name: "InputPaidMedia",
|
|
17011
|
-
description: { markdown: "This object describes the paid media to be sent. Currently, it can be one of
|
|
17011
|
+
description: { markdown: "This object describes the paid media to be sent. Currently, it can be one of\n\n- [InputPaidMediaPhoto](https://core.telegram.org/bots/api#inputpaidmediaphoto)\n- [InputPaidMediaVideo](https://core.telegram.org/bots/api#inputpaidmediavideo)" },
|
|
17012
17012
|
oneOf: [{
|
|
17013
17013
|
type: "api-type",
|
|
17014
17014
|
name: "InputPaidMediaPhoto"
|
|
@@ -17105,7 +17105,7 @@ const InputPaidMediaVideo = t({
|
|
|
17105
17105
|
});
|
|
17106
17106
|
const InputProfilePhoto = t({
|
|
17107
17107
|
name: "InputProfilePhoto",
|
|
17108
|
-
description: { markdown: "This object describes a profile photo to set. Currently, it can be one of
|
|
17108
|
+
description: { markdown: "This object describes a profile photo to set. Currently, it can be one of\n\n- [InputProfilePhotoStatic](https://core.telegram.org/bots/api#inputprofilephotostatic)\n- [InputProfilePhotoAnimated](https://core.telegram.org/bots/api#inputprofilephotoanimated)" },
|
|
17109
17109
|
oneOf: [{
|
|
17110
17110
|
type: "api-type",
|
|
17111
17111
|
name: "InputProfilePhotoStatic"
|
|
@@ -17160,7 +17160,7 @@ const InputProfilePhotoAnimated = t({
|
|
|
17160
17160
|
});
|
|
17161
17161
|
const InputStoryContent = t({
|
|
17162
17162
|
name: "InputStoryContent",
|
|
17163
|
-
description: { markdown: "This object describes the content of a story to post. Currently, it can be one of
|
|
17163
|
+
description: { markdown: "This object describes the content of a story to post. Currently, it can be one of\n\n- [InputStoryContentPhoto](https://core.telegram.org/bots/api#inputstorycontentphoto)\n- [InputStoryContentVideo](https://core.telegram.org/bots/api#inputstorycontentvideo)" },
|
|
17164
17164
|
oneOf: [{
|
|
17165
17165
|
type: "api-type",
|
|
17166
17166
|
name: "InputStoryContentPhoto"
|
|
@@ -17570,7 +17570,7 @@ const InlineQueryResultsButton = t({
|
|
|
17570
17570
|
});
|
|
17571
17571
|
const InlineQueryResult = t({
|
|
17572
17572
|
name: "InlineQueryResult",
|
|
17573
|
-
description: { markdown: "This object represents one result of an inline query. Telegram clients currently support results of the following 20 types
|
|
17573
|
+
description: { markdown: "This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:\n\n- [InlineQueryResultCachedAudio](https://core.telegram.org/bots/api#inlinequeryresultcachedaudio)\n- [InlineQueryResultCachedDocument](https://core.telegram.org/bots/api#inlinequeryresultcacheddocument)\n- [InlineQueryResultCachedGif](https://core.telegram.org/bots/api#inlinequeryresultcachedgif)\n- [InlineQueryResultCachedMpeg4Gif](https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif)\n- [InlineQueryResultCachedPhoto](https://core.telegram.org/bots/api#inlinequeryresultcachedphoto)\n- [InlineQueryResultCachedSticker](https://core.telegram.org/bots/api#inlinequeryresultcachedsticker)\n- [InlineQueryResultCachedVideo](https://core.telegram.org/bots/api#inlinequeryresultcachedvideo)\n- [InlineQueryResultCachedVoice](https://core.telegram.org/bots/api#inlinequeryresultcachedvoice)\n- [InlineQueryResultArticle](https://core.telegram.org/bots/api#inlinequeryresultarticle)\n- [InlineQueryResultAudio](https://core.telegram.org/bots/api#inlinequeryresultaudio)\n- [InlineQueryResultContact](https://core.telegram.org/bots/api#inlinequeryresultcontact)\n- [InlineQueryResultGame](https://core.telegram.org/bots/api#inlinequeryresultgame)\n- [InlineQueryResultDocument](https://core.telegram.org/bots/api#inlinequeryresultdocument)\n- [InlineQueryResultGif](https://core.telegram.org/bots/api#inlinequeryresultgif)\n- [InlineQueryResultLocation](https://core.telegram.org/bots/api#inlinequeryresultlocation)\n- [InlineQueryResultMpeg4Gif](https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif)\n- [InlineQueryResultPhoto](https://core.telegram.org/bots/api#inlinequeryresultphoto)\n- [InlineQueryResultVenue](https://core.telegram.org/bots/api#inlinequeryresultvenue)\n- [InlineQueryResultVideo](https://core.telegram.org/bots/api#inlinequeryresultvideo)\n- [InlineQueryResultVoice](https://core.telegram.org/bots/api#inlinequeryresultvoice)\n\n**Note:** All URLs passed in inline query results will be available to end users and therefore must be assumed to be **public**." },
|
|
17574
17574
|
oneOf: [
|
|
17575
17575
|
{
|
|
17576
17576
|
type: "api-type",
|
|
@@ -18100,7 +18100,7 @@ const InlineQueryResultMpeg4Gif = t({
|
|
|
18100
18100
|
});
|
|
18101
18101
|
const InlineQueryResultVideo = t({
|
|
18102
18102
|
name: "InlineQueryResultVideo",
|
|
18103
|
-
description: { markdown: "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use _input\\_message\\_content_ to send a message with the specified content instead of the video
|
|
18103
|
+
description: { markdown: "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use _input\\_message\\_content_ to send a message with the specified content instead of the video.\n\n> If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you **must** replace its content using _input\\_message\\_content_." },
|
|
18104
18104
|
fields: [
|
|
18105
18105
|
{
|
|
18106
18106
|
name: "type",
|
|
@@ -19538,7 +19538,7 @@ const InlineQueryResultCachedAudio = t({
|
|
|
19538
19538
|
});
|
|
19539
19539
|
const InputMessageContent = t({
|
|
19540
19540
|
name: "InputMessageContent",
|
|
19541
|
-
description: { markdown: "This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types
|
|
19541
|
+
description: { markdown: "This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:\n\n- [InputTextMessageContent](https://core.telegram.org/bots/api#inputtextmessagecontent)\n- [InputLocationMessageContent](https://core.telegram.org/bots/api#inputlocationmessagecontent)\n- [InputVenueMessageContent](https://core.telegram.org/bots/api#inputvenuemessagecontent)\n- [InputContactMessageContent](https://core.telegram.org/bots/api#inputcontactmessagecontent)\n- [InputInvoiceMessageContent](https://core.telegram.org/bots/api#inputinvoicemessagecontent)" },
|
|
19542
19542
|
oneOf: [
|
|
19543
19543
|
{
|
|
19544
19544
|
type: "api-type",
|
|
@@ -19906,7 +19906,7 @@ const InputInvoiceMessageContent = t({
|
|
|
19906
19906
|
});
|
|
19907
19907
|
const ChosenInlineResult = t({
|
|
19908
19908
|
name: "ChosenInlineResult",
|
|
19909
|
-
description: { markdown: "Represents a [result](https://core.telegram.org/bots/api#inlinequeryresult) of an inline query that was chosen by the user and sent to their chat partner
|
|
19909
|
+
description: { markdown: "Represents a [result](https://core.telegram.org/bots/api#inlinequeryresult) of an inline query that was chosen by the user and sent to their chat partner.\n\n**Note:** It is necessary to enable [inline feedback](https://core.telegram.org/bots/inline#collecting-feedback) via [@BotFather](https://t.me/botfather) in order to receive these objects in updates." },
|
|
19910
19910
|
fields: [
|
|
19911
19911
|
{
|
|
19912
19912
|
name: "result_id",
|
|
@@ -20404,7 +20404,7 @@ const PaidMediaPurchased = t({
|
|
|
20404
20404
|
});
|
|
20405
20405
|
const RevenueWithdrawalState = t({
|
|
20406
20406
|
name: "RevenueWithdrawalState",
|
|
20407
|
-
description: { markdown: "This object describes the state of a revenue withdrawal operation. Currently, it can be one of
|
|
20407
|
+
description: { markdown: "This object describes the state of a revenue withdrawal operation. Currently, it can be one of\n\n- [RevenueWithdrawalStatePending](https://core.telegram.org/bots/api#revenuewithdrawalstatepending)\n- [RevenueWithdrawalStateSucceeded](https://core.telegram.org/bots/api#revenuewithdrawalstatesucceeded)\n- [RevenueWithdrawalStateFailed](https://core.telegram.org/bots/api#revenuewithdrawalstatefailed)" },
|
|
20408
20408
|
oneOf: [
|
|
20409
20409
|
{
|
|
20410
20410
|
type: "api-type",
|
|
@@ -20518,7 +20518,7 @@ const AffiliateInfo = t({
|
|
|
20518
20518
|
});
|
|
20519
20519
|
const TransactionPartner = t({
|
|
20520
20520
|
name: "TransactionPartner",
|
|
20521
|
-
description: { markdown: "This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of
|
|
20521
|
+
description: { markdown: "This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of\n\n- [TransactionPartnerUser](https://core.telegram.org/bots/api#transactionpartneruser)\n- [TransactionPartnerChat](https://core.telegram.org/bots/api#transactionpartnerchat)\n- [TransactionPartnerAffiliateProgram](https://core.telegram.org/bots/api#transactionpartneraffiliateprogram)\n- [TransactionPartnerFragment](https://core.telegram.org/bots/api#transactionpartnerfragment)\n- [TransactionPartnerTelegramAds](https://core.telegram.org/bots/api#transactionpartnertelegramads)\n- [TransactionPartnerTelegramApi](https://core.telegram.org/bots/api#transactionpartnertelegramapi)\n- [TransactionPartnerOther](https://core.telegram.org/bots/api#transactionpartnerother)" },
|
|
20522
20522
|
oneOf: [
|
|
20523
20523
|
{
|
|
20524
20524
|
type: "api-type",
|
|
@@ -21020,7 +21020,7 @@ const EncryptedCredentials = t({
|
|
|
21020
21020
|
});
|
|
21021
21021
|
const PassportElementError = t({
|
|
21022
21022
|
name: "PassportElementError",
|
|
21023
|
-
description: { markdown: "This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of
|
|
21023
|
+
description: { markdown: "This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:\n\n- [PassportElementErrorDataField](https://core.telegram.org/bots/api#passportelementerrordatafield)\n- [PassportElementErrorFrontSide](https://core.telegram.org/bots/api#passportelementerrorfrontside)\n- [PassportElementErrorReverseSide](https://core.telegram.org/bots/api#passportelementerrorreverseside)\n- [PassportElementErrorSelfie](https://core.telegram.org/bots/api#passportelementerrorselfie)\n- [PassportElementErrorFile](https://core.telegram.org/bots/api#passportelementerrorfile)\n- [PassportElementErrorFiles](https://core.telegram.org/bots/api#passportelementerrorfiles)\n- [PassportElementErrorTranslationFile](https://core.telegram.org/bots/api#passportelementerrortranslationfile)\n- [PassportElementErrorTranslationFiles](https://core.telegram.org/bots/api#passportelementerrortranslationfiles)\n- [PassportElementErrorUnspecified](https://core.telegram.org/bots/api#passportelementerrorunspecified)" },
|
|
21024
21024
|
oneOf: [
|
|
21025
21025
|
{
|
|
21026
21026
|
type: "api-type",
|
package/package.json
CHANGED