@gramio/types
Advanced tools
Comparing version 7.1.7 to 7.2.0
/** | ||
* Based on Bot API v7.1.0 (16.2.2024) | ||
* Generated at 3/9/2024, 12:58:18 AM using [types](https://github.com/gramiojs/types) and [schema](https://ark0f.github.io/tg-bot-api) generators | ||
* Based on Bot API v7.2.0 (31.3.2024) | ||
* Generated at 3/31/2024, 6:04:31 PM using [types](https://github.com/gramiojs/types) and [schema](https://ark0f.github.io/tg-bot-api) generators | ||
*/ | ||
@@ -505,2 +505,11 @@ import { | ||
/** | ||
* Use this method to get information about the connection of the bot with a business account. Returns a [BusinessConnection](https://core.telegram.org/bots/api/#businessconnection) object on success. | ||
* | ||
* [Documentation](https://core.telegram.org/bots/api/#getbusinessconnection) | ||
*/ | ||
getBusinessConnection: CallAPI< | ||
Params.GetBusinessConnectionParams, | ||
Objects.TelegramBusinessConnection | ||
> | ||
/** | ||
* Use this method to change the list of the bot's commands. See [this manual](https://core.telegram.org/bots/features#commands) for more details about bot commands. Returns *True* on success. | ||
@@ -722,3 +731,3 @@ * | ||
/** | ||
* Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset) and [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. | ||
* Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset), [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), or [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. | ||
* | ||
@@ -738,3 +747,3 @@ * [Documentation](https://core.telegram.org/bots/api/#uploadstickerfile) | ||
/** | ||
* Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns *True* on success. | ||
* Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns *True* on success. | ||
* | ||
@@ -757,2 +766,8 @@ * [Documentation](https://core.telegram.org/bots/api/#addstickertoset) | ||
/** | ||
* Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling [deleteStickerFromSet](https://core.telegram.org/bots/api/#deletestickerfromset), then [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), then [setStickerPositionInSet](https://core.telegram.org/bots/api/#setstickerpositioninset). Returns *True* on success. | ||
* | ||
* [Documentation](https://core.telegram.org/bots/api/#replacestickerinset) | ||
*/ | ||
replaceStickerInSet: CallAPI<Params.ReplaceStickerInSetParams, true> | ||
/** | ||
* 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. | ||
@@ -759,0 +774,0 @@ * |
{ | ||
"name": "@gramio/types", | ||
"version": "7.1.7", | ||
"version": "7.2.0", | ||
"homepage": "https://github.com/gramiojs/types", | ||
@@ -5,0 +5,0 @@ "readme": "https://github.com/gramiojs/types", |
@@ -5,3 +5,3 @@ # Code-generated and Auto-published Telegram Bot API types | ||
7.1.x types is for 7.1 Telegram Bot API | ||
7.1.x types are for 7.1 Telegram Bot API | ||
@@ -17,3 +17,3 @@ ## Usage as an [NPM package](https://www.npmjs.com/package/@gramio/types) | ||
type GetMeReturn = APIMethodReturn<"getMe">; | ||
// ^? type SendMessageReturn = TelegramUser | ||
// ^? type GetMeReturn = TelegramUser | ||
``` | ||
@@ -20,0 +20,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
399294
9705