@telegram.ts/types 1.25.0 → 1.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegram.ts/types",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Comprehensive Type Declarations for Telegram Bot API with telegramsjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -2139,7 +2139,7 @@ export type ApiMethods = {
2139
2139
  text_parse_mode?: ParseMode;
2140
2140
  /** A list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored. */
2141
2141
  text_entities?: MessageEntity[];
2142
- }): Gifts;
2142
+ }): true;
2143
2143
 
2144
2144
  /** Gifts a Telegram Premium subscription to the given user. Returns True on success. */
2145
2145
  giftPremiumSubscription(args: {
@@ -38,7 +38,7 @@ export interface InputChecklistTask {
38
38
  /** Text of the task; 1-100 characters after entities parsing */
39
39
  text: string;
40
40
  /** Mode for parsing entities in the text. See formatting options for more details. */
41
- parse_mode?: string;
41
+ parse_mode?: ParseMode;
42
42
  /** List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed. */
43
43
  text_entities?: MessageEntity[];
44
44
  }
@@ -58,7 +58,7 @@ export interface User {
58
58
  /** User's or bot's username */
59
59
  username?: string;
60
60
  /** IETF language tag of the user's language */
61
- language_code?: string;
61
+ language_code?: LanguageCode;
62
62
  /** True, if this user is a Telegram Premium user */
63
63
  is_premium?: true;
64
64
  /** True, if this user added the bot to the attachment menu */