@telegram.ts/types 1.17.0 → 1.17.2
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
package/src/apiMethodsTypes.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/src/markupTypes.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare namespace InlineKeyboardButton {
|
|
|
44
44
|
/** If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account. */
|
|
45
45
|
switch_inline_query_chosen_chat: SwitchInlineQueryChosenChat;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface CopyTextButtonButton extends AbstractInlineKeyboardButton {
|
|
48
48
|
/** Description of the button that copies the specified text to the clipboard. */
|
|
49
49
|
copy_text: CopyTextButton;
|
|
50
50
|
}
|
|
@@ -71,7 +71,7 @@ export type InlineKeyboardButton =
|
|
|
71
71
|
| InlineKeyboardButton.SwitchInlineButton
|
|
72
72
|
| InlineKeyboardButton.SwitchInlineCurrentChatButton
|
|
73
73
|
| InlineKeyboardButton.SwitchInlineChosenChatButton
|
|
74
|
-
| InlineKeyboardButton.
|
|
74
|
+
| InlineKeyboardButton.CopyTextButtonButton
|
|
75
75
|
| InlineKeyboardButton.UrlButton
|
|
76
76
|
| InlineKeyboardButton.WebAppButton;
|
|
77
77
|
|
package/src/messageTypes.d.ts
CHANGED
|
@@ -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?:
|
|
461
|
+
language?: string;
|
|
463
462
|
}
|
|
464
463
|
export interface TextLinkMessageEntity extends AbstractMessageEntity {
|
|
465
464
|
type: "text_link";
|