Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gramio/types

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gramio/types - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

types/index.js

26

package.json
{
"name": "@gramio/types",
"version": "7.0.2",
"homepage": "https://github.com/kravetsone/gramio-types",
"readme": "https://github.com/kravetsone/gramio-types",
"version": "7.0.3",
"homepage": "https://github.com/gramiojs/types",
"readme": "https://github.com/gramiojs/types",
"description": "Code-generated Telegram Bot API types",

@@ -18,20 +18,24 @@ "author": "kravets",

],
"main": "./types/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts"
"types": "./types/index.d.ts",
"default": "./types/index.js"
},
"./*": {
"types": "./types/*.d.ts"
"types": "./types/*.d.ts",
"default": "./types/index.js"
}
},
"scripts": {
"prepublishOnly": "bun generate",
"generate": "bun src/index.ts"
"cicd": "bun scripts/cicd.ts",
"generate": "bun src/index.ts",
"lint": "bunx @biomejs/biome check ./src",
"lint:fix": "bun lint --apply"
},
"devDependencies": {
"@types/node": "^20.10.6",
"eslint": "^8.41.0",
"eslint-kit": "^10.0.0",
"prettier": "^3.0.0"
"@biomejs/biome": "1.5.3",
"@types/node": "^20.11.10",
"prettier": "^3.2.4"
},

@@ -38,0 +42,0 @@ "files": [

@@ -10,5 +10,5 @@ # Code-generated Telegram Bot API types

```ts
import type { ApiMethods } from "@gramio/types"
import type { ApiMethods } from "@gramio/types";
type SendMessageReturn = ReturnType<ApiMethods["sendMessage"]>
type SendMessageReturn = ReturnType<ApiMethods["sendMessage"]>;
// ^? type SendMessageReturn = Promise<TelegramMessage>

@@ -27,6 +27,6 @@ ```

```typescript
import { stringify } from "node:querystring"
import type { ApiMethods } from "@gramio/types"
import { stringify } from "node:querystring";
import type { ApiMethods } from "@gramio/types";
const TOKEN = ""
const TOKEN = "";

@@ -41,14 +41,14 @@ const api = new Proxy<ApiMethods>({} as ApiMethods, {

`?` +
stringify(args)
stringify(args);
const response = await fetch(url, {
method: "GET",
})
});
const data = await response.json()
if (!response.ok) throw new Error("some error")
const data = await response.json();
if (!response.ok) throw new Error("some error");
return data.result
return data.result;
},
})
});

@@ -58,3 +58,3 @@ api.sendMessage({

text: "msg",
})
});
```

@@ -66,9 +66,9 @@

1. Clone [this repo](https://github.com/kravetsone/gramio-types) and open it
1. Clone [this repo](https://github.com/gramiojs/types) and open it
```bash
git clone https://github.com/kravetsone/gramio-types.git
git clone https://github.com/gramiojs/types.git
```
2. Clone [repo](https://github.com/ark0f/tg-bot-api) with TBA parser to the `src` folder
2. Clone [repo](https://github.com/ark0f/tg-bot-api) with TBA parser in the `cloned` folder

@@ -75,0 +75,0 @@ ```bash

/**
* Based on Bot Api v7.0.0 (29.12.2023)
* Generated at 1/11/2024, 5:19:32 PM using {@link https://github.com/kravetsone/gramio-types | [types]} and {@link https://ark0f.github.io/tg-bot-api | [schema]} generators
* Generated at 1/30/2024, 1:07:54 PM using {@link https://github.com/gramiojs/types | [types]} and {@link https://ark0f.github.io/tg-bot-api | [schema]} generators
*/

@@ -8,5 +8,5 @@ import * as Params from "./params"

type TCallApi<T, R> = (params: T) => Promise<R>
type TCallApiWithoutParams<R> = () => Promise<R>
type TCallApiWithOptionalParams<T, R> = (params?: T) => Promise<R>
type CallApi<T, R> = (params: T) => Promise<R>
type CallApiWithoutParams<R> = () => Promise<R>
type CallApiWithOptionalParams<T, R> = (params?: T) => Promise<R>

@@ -19,3 +19,3 @@ export interface ApiMethods {

*/
getUpdates: TCallApiWithOptionalParams<
getUpdates: CallApiWithOptionalParams<
Params.GetUpdatesParams,

@@ -31,3 +31,3 @@ Objects.TelegramUpdate[]

*/
setWebhook: TCallApiWithOptionalParams<Params.SetWebhookParams, boolean>
setWebhook: CallApiWithOptionalParams<Params.SetWebhookParams, boolean>
/**

@@ -38,3 +38,3 @@ * Use this method to remove webhook integration if you decide to switch back to [getUpdates](https://core.telegram.org/bots/api/#getupdates). Returns *True* on success.

*/
deleteWebhook: TCallApiWithOptionalParams<
deleteWebhook: CallApiWithOptionalParams<
Params.DeleteWebhookParams,

@@ -48,3 +48,3 @@ boolean

*/
getWebhookInfo: TCallApiWithoutParams<Objects.TelegramWebhookInfo>
getWebhookInfo: CallApiWithoutParams<Objects.TelegramWebhookInfo>
/**

@@ -55,3 +55,3 @@ * A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a [User](https://core.telegram.org/bots/api/#user) object.

*/
getMe: TCallApiWithoutParams<Objects.TelegramUser>
getMe: CallApiWithoutParams<Objects.TelegramUser>
/**

@@ -62,3 +62,3 @@ * Use this method to log out from the cloud Bot API server before launching the bot locally. You **must** log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns *True* on success. Requires no parameters.

*/
logOut: TCallApiWithoutParams<boolean>
logOut: CallApiWithoutParams<boolean>
/**

@@ -69,3 +69,3 @@ * Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns *True* on success. Requires no parameters.

*/
close: TCallApiWithoutParams<boolean>
close: CallApiWithoutParams<boolean>
/**

@@ -76,3 +76,3 @@ * Use this method to send text messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

*/
sendMessage: TCallApiWithOptionalParams<
sendMessage: CallApiWithOptionalParams<
Params.SendMessageParams,

@@ -86,3 +86,3 @@ Objects.TelegramMessage

*/
forwardMessage: TCallApiWithOptionalParams<
forwardMessage: CallApiWithOptionalParams<
Params.ForwardMessageParams,

@@ -96,3 +96,3 @@ Objects.TelegramMessage

*/
forwardMessages: TCallApiWithOptionalParams<
forwardMessages: CallApiWithOptionalParams<
Params.ForwardMessagesParams,

@@ -106,3 +106,3 @@ Objects.TelegramMessageId[]

*/
copyMessage: TCallApiWithOptionalParams<
copyMessage: CallApiWithOptionalParams<
Params.CopyMessageParams,

@@ -116,3 +116,3 @@ Objects.TelegramMessageId

*/
copyMessages: TCallApiWithOptionalParams<
copyMessages: CallApiWithOptionalParams<
Params.CopyMessagesParams,

@@ -126,3 +126,3 @@ Objects.TelegramMessageId[]

*/
sendPhoto: TCallApiWithOptionalParams<
sendPhoto: CallApiWithOptionalParams<
Params.SendPhotoParams,

@@ -138,3 +138,3 @@ Objects.TelegramMessage

*/
sendAudio: TCallApiWithOptionalParams<
sendAudio: CallApiWithOptionalParams<
Params.SendAudioParams,

@@ -148,3 +148,3 @@ Objects.TelegramMessage

*/
sendDocument: TCallApiWithOptionalParams<
sendDocument: CallApiWithOptionalParams<
Params.SendDocumentParams,

@@ -158,3 +158,3 @@ Objects.TelegramMessage

*/
sendVideo: TCallApiWithOptionalParams<
sendVideo: CallApiWithOptionalParams<
Params.SendVideoParams,

@@ -168,3 +168,3 @@ Objects.TelegramMessage

*/
sendAnimation: TCallApiWithOptionalParams<
sendAnimation: CallApiWithOptionalParams<
Params.SendAnimationParams,

@@ -178,3 +178,3 @@ Objects.TelegramMessage

*/
sendVoice: TCallApiWithOptionalParams<
sendVoice: CallApiWithOptionalParams<
Params.SendVoiceParams,

@@ -188,3 +188,3 @@ Objects.TelegramMessage

*/
sendVideoNote: TCallApiWithOptionalParams<
sendVideoNote: CallApiWithOptionalParams<
Params.SendVideoNoteParams,

@@ -198,3 +198,3 @@ Objects.TelegramMessage

*/
sendMediaGroup: TCallApiWithOptionalParams<
sendMediaGroup: CallApiWithOptionalParams<
Params.SendMediaGroupParams,

@@ -208,3 +208,3 @@ Objects.TelegramMessage[]

*/
sendLocation: TCallApiWithOptionalParams<
sendLocation: CallApiWithOptionalParams<
Params.SendLocationParams,

@@ -218,3 +218,3 @@ Objects.TelegramMessage

*/
sendVenue: TCallApiWithOptionalParams<
sendVenue: CallApiWithOptionalParams<
Params.SendVenueParams,

@@ -228,3 +228,3 @@ Objects.TelegramMessage

*/
sendContact: TCallApiWithOptionalParams<
sendContact: CallApiWithOptionalParams<
Params.SendContactParams,

@@ -238,3 +238,3 @@ Objects.TelegramMessage

*/
sendPoll: TCallApiWithOptionalParams<
sendPoll: CallApiWithOptionalParams<
Params.SendPollParams,

@@ -248,3 +248,3 @@ Objects.TelegramMessage

*/
sendDice: TCallApiWithOptionalParams<
sendDice: CallApiWithOptionalParams<
Params.SendDiceParams,

@@ -262,3 +262,3 @@ Objects.TelegramMessage

*/
sendChatAction: TCallApiWithOptionalParams<
sendChatAction: CallApiWithOptionalParams<
Params.SendChatActionParams,

@@ -272,3 +272,3 @@ boolean

*/
setMessageReaction: TCallApiWithOptionalParams<
setMessageReaction: CallApiWithOptionalParams<
Params.SetMessageReactionParams,

@@ -282,3 +282,3 @@ boolean

*/
getUserProfilePhotos: TCallApiWithOptionalParams<
getUserProfilePhotos: CallApiWithOptionalParams<
Params.GetUserProfilePhotosParams,

@@ -292,3 +292,3 @@ Objects.TelegramUserProfilePhotos

*/
getFile: TCallApi<Params.GetFileParams, Objects.TelegramFile>
getFile: CallApi<Params.GetFileParams, Objects.TelegramFile>
/**

@@ -299,3 +299,3 @@ * Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless [unbanned](https://core.telegram.org/bots/api/#unbanchatmember) first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success.

*/
banChatMember: TCallApiWithOptionalParams<
banChatMember: CallApiWithOptionalParams<
Params.BanChatMemberParams,

@@ -309,3 +309,3 @@ boolean

*/
unbanChatMember: TCallApiWithOptionalParams<
unbanChatMember: CallApiWithOptionalParams<
Params.UnbanChatMemberParams,

@@ -319,3 +319,3 @@ boolean

*/
restrictChatMember: TCallApiWithOptionalParams<
restrictChatMember: CallApiWithOptionalParams<
Params.RestrictChatMemberParams,

@@ -329,3 +329,3 @@ boolean

*/
promoteChatMember: TCallApiWithOptionalParams<
promoteChatMember: CallApiWithOptionalParams<
Params.PromoteChatMemberParams,

@@ -339,3 +339,3 @@ boolean

*/
setChatAdministratorCustomTitle: TCallApi<
setChatAdministratorCustomTitle: CallApi<
Params.SetChatAdministratorCustomTitleParams,

@@ -349,3 +349,3 @@ boolean

*/
banChatSenderChat: TCallApi<Params.BanChatSenderChatParams, boolean>
banChatSenderChat: CallApi<Params.BanChatSenderChatParams, boolean>
/**

@@ -356,3 +356,3 @@ * Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns *True* on success.

*/
unbanChatSenderChat: TCallApi<Params.UnbanChatSenderChatParams, boolean>
unbanChatSenderChat: CallApi<Params.UnbanChatSenderChatParams, boolean>
/**

@@ -363,3 +363,3 @@ * Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the *can\_restrict\_members* administrator rights. Returns *True* on success.

*/
setChatPermissions: TCallApiWithOptionalParams<
setChatPermissions: CallApiWithOptionalParams<
Params.SetChatPermissionsParams,

@@ -373,3 +373,3 @@ boolean

*/
exportChatInviteLink: TCallApi<Params.ExportChatInviteLinkParams, string>
exportChatInviteLink: CallApi<Params.ExportChatInviteLinkParams, string>
/**

@@ -380,3 +380,3 @@ * Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method [revokeChatInviteLink](https://core.telegram.org/bots/api/#revokechatinvitelink). Returns the new invite link as [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink) object.

*/
createChatInviteLink: TCallApiWithOptionalParams<
createChatInviteLink: CallApiWithOptionalParams<
Params.CreateChatInviteLinkParams,

@@ -390,3 +390,3 @@ Objects.TelegramChatInviteLink

*/
editChatInviteLink: TCallApiWithOptionalParams<
editChatInviteLink: CallApiWithOptionalParams<
Params.EditChatInviteLinkParams,

@@ -400,3 +400,3 @@ Objects.TelegramChatInviteLink

*/
revokeChatInviteLink: TCallApi<
revokeChatInviteLink: CallApi<
Params.RevokeChatInviteLinkParams,

@@ -410,3 +410,3 @@ Objects.TelegramChatInviteLink

*/
approveChatJoinRequest: TCallApi<
approveChatJoinRequest: CallApi<
Params.ApproveChatJoinRequestParams,

@@ -420,3 +420,3 @@ boolean

*/
declineChatJoinRequest: TCallApi<
declineChatJoinRequest: CallApi<
Params.DeclineChatJoinRequestParams,

@@ -430,3 +430,3 @@ boolean

*/
setChatPhoto: TCallApi<Params.SetChatPhotoParams, boolean>
setChatPhoto: CallApi<Params.SetChatPhotoParams, boolean>
/**

@@ -437,3 +437,3 @@ * Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success.

*/
deleteChatPhoto: TCallApi<Params.DeleteChatPhotoParams, boolean>
deleteChatPhoto: CallApi<Params.DeleteChatPhotoParams, boolean>
/**

@@ -444,3 +444,3 @@ * Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success.

*/
setChatTitle: TCallApi<Params.SetChatTitleParams, boolean>
setChatTitle: CallApi<Params.SetChatTitleParams, boolean>
/**

@@ -451,3 +451,3 @@ * Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success.

*/
setChatDescription: TCallApiWithOptionalParams<
setChatDescription: CallApiWithOptionalParams<
Params.SetChatDescriptionParams,

@@ -461,3 +461,3 @@ boolean

*/
pinChatMessage: TCallApiWithOptionalParams<
pinChatMessage: CallApiWithOptionalParams<
Params.PinChatMessageParams,

@@ -471,3 +471,3 @@ boolean

*/
unpinChatMessage: TCallApiWithOptionalParams<
unpinChatMessage: CallApiWithOptionalParams<
Params.UnpinChatMessageParams,

@@ -481,3 +481,3 @@ boolean

*/
unpinAllChatMessages: TCallApi<Params.UnpinAllChatMessagesParams, boolean>
unpinAllChatMessages: CallApi<Params.UnpinAllChatMessagesParams, boolean>
/**

@@ -488,3 +488,3 @@ * Use this method for your bot to leave a group, supergroup or channel. Returns *True* on success.

*/
leaveChat: TCallApi<Params.LeaveChatParams, boolean>
leaveChat: CallApi<Params.LeaveChatParams, boolean>
/**

@@ -495,3 +495,3 @@ * Use this method to get up to date information about the chat. Returns a [Chat](https://core.telegram.org/bots/api/#chat) object on success.

*/
getChat: TCallApi<Params.GetChatParams, Objects.TelegramChat>
getChat: CallApi<Params.GetChatParams, Objects.TelegramChat>
/**

@@ -502,3 +502,3 @@ * Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of [ChatMember](https://core.telegram.org/bots/api/#chatmember) objects.

*/
getChatAdministrators: TCallApi<
getChatAdministrators: CallApi<
Params.GetChatAdministratorsParams,

@@ -512,3 +512,3 @@ Objects.TelegramChatMember[]

*/
getChatMemberCount: TCallApi<Params.GetChatMemberCountParams, number>
getChatMemberCount: CallApi<Params.GetChatMemberCountParams, number>
/**

@@ -519,3 +519,3 @@ * Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a [ChatMember](https://core.telegram.org/bots/api/#chatmember) object on success.

*/
getChatMember: TCallApi<
getChatMember: CallApi<
Params.GetChatMemberParams,

@@ -529,3 +529,3 @@ Objects.TelegramChatMember

*/
setChatStickerSet: TCallApi<Params.SetChatStickerSetParams, boolean>
setChatStickerSet: CallApi<Params.SetChatStickerSetParams, boolean>
/**

@@ -536,3 +536,3 @@ * Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field *can\_set\_sticker\_set* optionally returned in [getChat](https://core.telegram.org/bots/api/#getchat) requests to check if the bot can use this method. Returns *True* on success.

*/
deleteChatStickerSet: TCallApi<Params.DeleteChatStickerSetParams, boolean>
deleteChatStickerSet: CallApi<Params.DeleteChatStickerSetParams, boolean>
/**

@@ -543,3 +543,3 @@ * Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of [Sticker](https://core.telegram.org/bots/api/#sticker) objects.

*/
getForumTopicIconStickers: TCallApiWithoutParams<Objects.TelegramSticker[]>
getForumTopicIconStickers: CallApiWithoutParams<Objects.TelegramSticker[]>
/**

@@ -550,3 +550,3 @@ * Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns information about the created topic as a [ForumTopic](https://core.telegram.org/bots/api/#forumtopic) object.

*/
createForumTopic: TCallApiWithOptionalParams<
createForumTopic: CallApiWithOptionalParams<
Params.CreateForumTopicParams,

@@ -560,3 +560,3 @@ Objects.TelegramForumTopic

*/
editForumTopic: TCallApiWithOptionalParams<
editForumTopic: CallApiWithOptionalParams<
Params.EditForumTopicParams,

@@ -570,3 +570,3 @@ boolean

*/
closeForumTopic: TCallApi<Params.CloseForumTopicParams, boolean>
closeForumTopic: CallApi<Params.CloseForumTopicParams, boolean>
/**

@@ -577,3 +577,3 @@ * Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success.

*/
reopenForumTopic: TCallApi<Params.ReopenForumTopicParams, boolean>
reopenForumTopic: CallApi<Params.ReopenForumTopicParams, boolean>
/**

@@ -584,3 +584,3 @@ * Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_delete\_messages* administrator rights. Returns *True* on success.

*/
deleteForumTopic: TCallApi<Params.DeleteForumTopicParams, boolean>
deleteForumTopic: CallApi<Params.DeleteForumTopicParams, boolean>
/**

@@ -591,3 +591,3 @@ * Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the *can\_pin\_messages* administrator right in the supergroup. Returns *True* on success.

*/
unpinAllForumTopicMessages: TCallApi<
unpinAllForumTopicMessages: CallApi<
Params.UnpinAllForumTopicMessagesParams,

@@ -601,3 +601,3 @@ boolean

*/
editGeneralForumTopic: TCallApi<Params.EditGeneralForumTopicParams, boolean>
editGeneralForumTopic: CallApi<Params.EditGeneralForumTopicParams, boolean>
/**

@@ -608,3 +608,3 @@ * Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success.

*/
closeGeneralForumTopic: TCallApi<
closeGeneralForumTopic: CallApi<
Params.CloseGeneralForumTopicParams,

@@ -618,3 +618,3 @@ boolean

*/
reopenGeneralForumTopic: TCallApi<
reopenGeneralForumTopic: CallApi<
Params.ReopenGeneralForumTopicParams,

@@ -628,3 +628,3 @@ boolean

*/
hideGeneralForumTopic: TCallApi<Params.HideGeneralForumTopicParams, boolean>
hideGeneralForumTopic: CallApi<Params.HideGeneralForumTopicParams, boolean>
/**

@@ -635,3 +635,3 @@ * Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success.

*/
unhideGeneralForumTopic: TCallApi<
unhideGeneralForumTopic: CallApi<
Params.UnhideGeneralForumTopicParams,

@@ -645,3 +645,3 @@ boolean

*/
unpinAllGeneralForumTopicMessages: TCallApi<
unpinAllGeneralForumTopicMessages: CallApi<
Params.UnpinAllGeneralForumTopicMessagesParams,

@@ -657,3 +657,3 @@ boolean

*/
answerCallbackQuery: TCallApiWithOptionalParams<
answerCallbackQuery: CallApiWithOptionalParams<
Params.AnswerCallbackQueryParams,

@@ -667,3 +667,3 @@ boolean

*/
getUserChatBoosts: TCallApi<
getUserChatBoosts: CallApi<
Params.GetUserChatBoostsParams,

@@ -677,3 +677,3 @@ Objects.TelegramUserChatBoosts

*/
setMyCommands: TCallApiWithOptionalParams<
setMyCommands: CallApiWithOptionalParams<
Params.SetMyCommandsParams,

@@ -687,3 +687,3 @@ boolean

*/
deleteMyCommands: TCallApiWithOptionalParams<
deleteMyCommands: CallApiWithOptionalParams<
Params.DeleteMyCommandsParams,

@@ -697,3 +697,3 @@ boolean

*/
getMyCommands: TCallApiWithOptionalParams<
getMyCommands: CallApiWithOptionalParams<
Params.GetMyCommandsParams,

@@ -707,3 +707,3 @@ Objects.TelegramBotCommand[]

*/
setMyName: TCallApiWithOptionalParams<Params.SetMyNameParams, boolean>
setMyName: CallApiWithOptionalParams<Params.SetMyNameParams, boolean>
/**

@@ -714,3 +714,3 @@ * Use this method to get the current bot name for the given user language. Returns [BotName](https://core.telegram.org/bots/api/#botname) on success.

*/
getMyName: TCallApiWithOptionalParams<
getMyName: CallApiWithOptionalParams<
Params.GetMyNameParams,

@@ -724,3 +724,3 @@ Objects.TelegramBotName

*/
setMyDescription: TCallApiWithOptionalParams<
setMyDescription: CallApiWithOptionalParams<
Params.SetMyDescriptionParams,

@@ -734,3 +734,3 @@ boolean

*/
getMyDescription: TCallApiWithOptionalParams<
getMyDescription: CallApiWithOptionalParams<
Params.GetMyDescriptionParams,

@@ -744,3 +744,3 @@ Objects.TelegramBotDescription

*/
setMyShortDescription: TCallApiWithOptionalParams<
setMyShortDescription: CallApiWithOptionalParams<
Params.SetMyShortDescriptionParams,

@@ -754,3 +754,3 @@ boolean

*/
getMyShortDescription: TCallApiWithOptionalParams<
getMyShortDescription: CallApiWithOptionalParams<
Params.GetMyShortDescriptionParams,

@@ -764,3 +764,3 @@ Objects.TelegramBotShortDescription

*/
setChatMenuButton: TCallApiWithOptionalParams<
setChatMenuButton: CallApiWithOptionalParams<
Params.SetChatMenuButtonParams,

@@ -774,3 +774,3 @@ boolean

*/
getChatMenuButton: TCallApiWithOptionalParams<
getChatMenuButton: CallApiWithOptionalParams<
Params.GetChatMenuButtonParams,

@@ -784,3 +784,3 @@ Objects.TelegramMenuButton

*/
setMyDefaultAdministratorRights: TCallApiWithOptionalParams<
setMyDefaultAdministratorRights: CallApiWithOptionalParams<
Params.SetMyDefaultAdministratorRightsParams,

@@ -794,3 +794,3 @@ boolean

*/
getMyDefaultAdministratorRights: TCallApiWithOptionalParams<
getMyDefaultAdministratorRights: CallApiWithOptionalParams<
Params.GetMyDefaultAdministratorRightsParams,

@@ -804,3 +804,3 @@ Objects.TelegramChatAdministratorRights

*/
editMessageText: TCallApiWithOptionalParams<
editMessageText: CallApiWithOptionalParams<
Params.EditMessageTextParams,

@@ -814,3 +814,3 @@ Objects.TelegramMessage | boolean

*/
editMessageCaption: TCallApiWithOptionalParams<
editMessageCaption: CallApiWithOptionalParams<
Params.EditMessageCaptionParams,

@@ -824,3 +824,3 @@ Objects.TelegramMessage | boolean

*/
editMessageMedia: TCallApiWithOptionalParams<
editMessageMedia: CallApiWithOptionalParams<
Params.EditMessageMediaParams,

@@ -834,3 +834,3 @@ Objects.TelegramMessage | boolean

*/
editMessageLiveLocation: TCallApiWithOptionalParams<
editMessageLiveLocation: CallApiWithOptionalParams<
Params.EditMessageLiveLocationParams,

@@ -844,3 +844,3 @@ Objects.TelegramMessage | boolean

*/
stopMessageLiveLocation: TCallApiWithOptionalParams<
stopMessageLiveLocation: CallApiWithOptionalParams<
Params.StopMessageLiveLocationParams,

@@ -854,3 +854,3 @@ Objects.TelegramMessage | boolean

*/
editMessageReplyMarkup: TCallApiWithOptionalParams<
editMessageReplyMarkup: CallApiWithOptionalParams<
Params.EditMessageReplyMarkupParams,

@@ -864,3 +864,3 @@ Objects.TelegramMessage | boolean

*/
stopPoll: TCallApiWithOptionalParams<
stopPoll: CallApiWithOptionalParams<
Params.StopPollParams,

@@ -883,3 +883,3 @@ Objects.TelegramPoll

*/
deleteMessage: TCallApi<Params.DeleteMessageParams, boolean>
deleteMessage: CallApi<Params.DeleteMessageParams, boolean>
/**

@@ -890,3 +890,3 @@ * Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns *True* on success.

*/
deleteMessages: TCallApi<Params.DeleteMessagesParams, boolean>
deleteMessages: CallApi<Params.DeleteMessagesParams, boolean>
/**

@@ -897,3 +897,3 @@ * Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

*/
sendSticker: TCallApiWithOptionalParams<
sendSticker: CallApiWithOptionalParams<
Params.SendStickerParams,

@@ -907,3 +907,3 @@ Objects.TelegramMessage

*/
getStickerSet: TCallApi<
getStickerSet: CallApi<
Params.GetStickerSetParams,

@@ -917,3 +917,3 @@ Objects.TelegramStickerSet

*/
getCustomEmojiStickers: TCallApi<
getCustomEmojiStickers: CallApi<
Params.GetCustomEmojiStickersParams,

@@ -927,3 +927,3 @@ Objects.TelegramSticker[]

*/
uploadStickerFile: TCallApi<
uploadStickerFile: CallApi<
Params.UploadStickerFileParams,

@@ -937,3 +937,3 @@ Objects.TelegramFile

*/
createNewStickerSet: TCallApiWithOptionalParams<
createNewStickerSet: CallApiWithOptionalParams<
Params.CreateNewStickerSetParams,

@@ -947,3 +947,3 @@ boolean

*/
addStickerToSet: TCallApi<Params.AddStickerToSetParams, boolean>
addStickerToSet: CallApi<Params.AddStickerToSetParams, boolean>
/**

@@ -954,3 +954,3 @@ * Use this method to move a sticker in a set created by the bot to a specific position. Returns *True* on success.

*/
setStickerPositionInSet: TCallApi<
setStickerPositionInSet: CallApi<
Params.SetStickerPositionInSetParams,

@@ -964,3 +964,3 @@ boolean

*/
deleteStickerFromSet: TCallApi<Params.DeleteStickerFromSetParams, boolean>
deleteStickerFromSet: CallApi<Params.DeleteStickerFromSetParams, boolean>
/**

@@ -971,3 +971,3 @@ * Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns *True* on success.

*/
setStickerEmojiList: TCallApi<Params.SetStickerEmojiListParams, boolean>
setStickerEmojiList: CallApi<Params.SetStickerEmojiListParams, boolean>
/**

@@ -978,3 +978,3 @@ * Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns *True* on success.

*/
setStickerKeywords: TCallApiWithOptionalParams<
setStickerKeywords: CallApiWithOptionalParams<
Params.SetStickerKeywordsParams,

@@ -988,3 +988,3 @@ boolean

*/
setStickerMaskPosition: TCallApiWithOptionalParams<
setStickerMaskPosition: CallApiWithOptionalParams<
Params.SetStickerMaskPositionParams,

@@ -998,3 +998,3 @@ boolean

*/
setStickerSetTitle: TCallApi<Params.SetStickerSetTitleParams, boolean>
setStickerSetTitle: CallApi<Params.SetStickerSetTitleParams, boolean>
/**

@@ -1005,3 +1005,3 @@ * Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns *True* on success.

*/
setStickerSetThumbnail: TCallApiWithOptionalParams<
setStickerSetThumbnail: CallApiWithOptionalParams<
Params.SetStickerSetThumbnailParams,

@@ -1015,3 +1015,3 @@ boolean

*/
setCustomEmojiStickerSetThumbnail: TCallApiWithOptionalParams<
setCustomEmojiStickerSetThumbnail: CallApiWithOptionalParams<
Params.SetCustomEmojiStickerSetThumbnailParams,

@@ -1025,3 +1025,3 @@ boolean

*/
deleteStickerSet: TCallApi<Params.DeleteStickerSetParams, boolean>
deleteStickerSet: CallApi<Params.DeleteStickerSetParams, boolean>
/**

@@ -1033,3 +1033,3 @@ * Use this method to send answers to an inline query. On success, *True* is returned.

*/
answerInlineQuery: TCallApiWithOptionalParams<
answerInlineQuery: CallApiWithOptionalParams<
Params.AnswerInlineQueryParams,

@@ -1043,3 +1043,3 @@ boolean

*/
answerWebAppQuery: TCallApi<
answerWebAppQuery: CallApi<
Params.AnswerWebAppQueryParams,

@@ -1053,3 +1053,3 @@ Objects.TelegramSentWebAppMessage

*/
sendInvoice: TCallApiWithOptionalParams<
sendInvoice: CallApiWithOptionalParams<
Params.SendInvoiceParams,

@@ -1063,3 +1063,3 @@ Objects.TelegramMessage

*/
createInvoiceLink: TCallApiWithOptionalParams<
createInvoiceLink: CallApiWithOptionalParams<
Params.CreateInvoiceLinkParams,

@@ -1073,3 +1073,3 @@ string

*/
answerShippingQuery: TCallApiWithOptionalParams<
answerShippingQuery: CallApiWithOptionalParams<
Params.AnswerShippingQueryParams,

@@ -1083,3 +1083,3 @@ boolean

*/
answerPreCheckoutQuery: TCallApiWithOptionalParams<
answerPreCheckoutQuery: CallApiWithOptionalParams<
Params.AnswerPreCheckoutQueryParams,

@@ -1095,3 +1095,3 @@ boolean

*/
setPassportDataErrors: TCallApi<Params.SetPassportDataErrorsParams, boolean>
setPassportDataErrors: CallApi<Params.SetPassportDataErrorsParams, boolean>
/**

@@ -1102,3 +1102,3 @@ * Use this method to send a game. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

*/
sendGame: TCallApiWithOptionalParams<
sendGame: CallApiWithOptionalParams<
Params.SendGameParams,

@@ -1112,3 +1112,3 @@ Objects.TelegramMessage

*/
setGameScore: TCallApiWithOptionalParams<
setGameScore: CallApiWithOptionalParams<
Params.SetGameScoreParams,

@@ -1124,3 +1124,3 @@ Objects.TelegramMessage | boolean

*/
getGameHighScores: TCallApiWithOptionalParams<
getGameHighScores: CallApiWithOptionalParams<
Params.GetGameHighScoresParams,

@@ -1127,0 +1127,0 @@ Objects.TelegramGameHighScore[]

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc