@telegram.ts/types 1.17.0 → 1.17.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.17.0",
3
+ "version": "1.17.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",
@@ -1462,7 +1462,7 @@ export type ApiMethods = {
1462
1462
  reply_markup?: InlineKeyboardMarkup;
1463
1463
  }): (Update.Edited & Message.CaptionableMessage) | true;
1464
1464
 
1465
- /** Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent. */
1465
+ /** Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent. */
1466
1466
  editMessageMedia(args: {
1467
1467
  /** Unique identifier of the business connection on behalf of which the message to be edited was sent */
1468
1468
  business_connection_id?: string;
@@ -1,5 +1,4 @@
1
1
  import type { Chat, User } from "./manageTypes";
2
- import type { LanguageCode } from "./languageTypes";
3
2
  import type { InlineKeyboardMarkup } from "./markupTypes";
4
3
  import type { PassportData } from "./passportTypes";
5
4
  import type {
@@ -459,7 +458,7 @@ export declare namespace MessageEntity {
459
458
  export interface PreMessageEntity extends AbstractMessageEntity {
460
459
  type: "pre";
461
460
  /** For “pre” only, the programming language of the entity text */
462
- language?: LanguageCode;
461
+ language?: string;
463
462
  }
464
463
  export interface TextLinkMessageEntity extends AbstractMessageEntity {
465
464
  type: "text_link";