Skip to content

Commit 098bb8c

Browse files
committed
fix: fix Bot API types
1 parent 9951117 commit 098bb8c

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@antfu/eslint-config": "7.7.3",
5353
"@effect/language-service": "0.85.1",
5454
"@effect/platform": "0.96.1",
55-
"@grom.js/bot-api-spec": "0.10.0",
55+
"@grom.js/bot-api-spec": "0.10.1",
5656
"@grom.js/tgx": "1.4.3",
5757
"@types/node": "22.19.18",
5858
"@vitest/coverage-v8": "4.1.5",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/botApi.gen.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ export declare namespace Types {
11951195
duration: number
11961196
/** MIME type of the file as defined by the sender */
11971197
mime_type?: string | undefined
1198-
/** File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. */
1198+
/** File size in bytes. */
11991199
file_size?: number | undefined
12001200
}
12011201

@@ -1391,9 +1391,7 @@ export declare namespace Types {
13911391
* - [InputMediaVenue](https://core.telegram.org/bots/api#inputmediavenue)
13921392
* - [InputMediaVideo](https://core.telegram.org/bots/api#inputmediavideo)
13931393
*/
1394-
export interface InputPollMedia {
1395-
}
1396-
1394+
export type InputPollMedia = Types.InputMediaAnimation | Types.InputMediaAudio | Types.InputMediaDocument | Types.InputMediaLivePhoto | Types.InputMediaLocation | Types.InputMediaPhoto | Types.InputMediaVenue | Types.InputMediaVideo
13971395
/**
13981396
* This object represents the content of a poll option to be sent. It should be one of
13991397
*
@@ -1405,8 +1403,7 @@ export declare namespace Types {
14051403
* - [InputMediaVenue](https://core.telegram.org/bots/api#inputmediavenue)
14061404
* - [InputMediaVideo](https://core.telegram.org/bots/api#inputmediavideo)
14071405
*/
1408-
export interface InputPollOptionMedia {
1409-
}
1406+
export type InputPollOptionMedia = Types.InputMediaAnimation | Types.InputMediaLivePhoto | Types.InputMediaLocation | Types.InputMediaPhoto | Types.InputMediaSticker | Types.InputMediaVenue | Types.InputMediaVideo
14101407

14111408
/** This object contains information about one answer option in a poll. */
14121409
export interface PollOption {

0 commit comments

Comments
 (0)