@grammyjs/types 3.11.0 → 3.12.0
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/README.md +1 -1
- package/manage.d.ts +6 -4
- package/methods.d.ts +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/manage.d.ts
CHANGED
|
@@ -51,7 +51,9 @@ export interface UserFromGetMe extends User {
|
|
|
51
51
|
/** True, if the bot supports inline queries. Returned only in getMe. */
|
|
52
52
|
supports_inline_queries: boolean;
|
|
53
53
|
/** True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe. */
|
|
54
|
-
can_connect_to_business
|
|
54
|
+
can_connect_to_business: boolean;
|
|
55
|
+
/** True, if the bot has main Web App. Returned only in getMe. */
|
|
56
|
+
has_main_web_app: boolean;
|
|
55
57
|
}
|
|
56
58
|
export declare namespace Chat {
|
|
57
59
|
/** Internal type for private chats */
|
|
@@ -224,7 +226,7 @@ export declare namespace ChatFullInfo {
|
|
|
224
226
|
/** Type of the chat, can be either “private”, “group”, “supergroup” or “channel” */
|
|
225
227
|
type: "group";
|
|
226
228
|
/** Title, for supergroups, channels and group chats */
|
|
227
|
-
title
|
|
229
|
+
title: string;
|
|
228
230
|
/** Username, for private chats, supergroups and channels if available */
|
|
229
231
|
username?: undefined;
|
|
230
232
|
/** First name of the other party in a private chat */
|
|
@@ -315,7 +317,7 @@ export declare namespace ChatFullInfo {
|
|
|
315
317
|
/** Type of the chat, can be either “private”, “group”, “supergroup” or “channel” */
|
|
316
318
|
type: "supergroup";
|
|
317
319
|
/** Title, for supergroups, channels and group chats */
|
|
318
|
-
title
|
|
320
|
+
title: string;
|
|
319
321
|
/** Username, for private chats, supergroups and channels if available */
|
|
320
322
|
username?: string;
|
|
321
323
|
/** First name of the other party in a private chat */
|
|
@@ -406,7 +408,7 @@ export declare namespace ChatFullInfo {
|
|
|
406
408
|
/** Type of the chat, can be either “private”, “group”, “supergroup” or “channel” */
|
|
407
409
|
type: "channel";
|
|
408
410
|
/** Title, for supergroups, channels and group chats */
|
|
409
|
-
title
|
|
411
|
+
title: string;
|
|
410
412
|
/** Username, for private chats, supergroups and channels if available */
|
|
411
413
|
username?: string;
|
|
412
414
|
/** First name of the other party in a private chat */
|
package/methods.d.ts
CHANGED
|
@@ -915,6 +915,8 @@ export type ApiMethods<F> = {
|
|
|
915
915
|
}): true;
|
|
916
916
|
/** Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel. Returns True on success. */
|
|
917
917
|
pinChatMessage(args: {
|
|
918
|
+
/** Unique identifier of the business connection on behalf of which the message will be pinned */
|
|
919
|
+
business_connection_id?: string;
|
|
918
920
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
919
921
|
chat_id: number | string;
|
|
920
922
|
/** Identifier of a message to pin */
|
|
@@ -924,9 +926,11 @@ export type ApiMethods<F> = {
|
|
|
924
926
|
}): true;
|
|
925
927
|
/** Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel. Returns True on success. */
|
|
926
928
|
unpinChatMessage(args: {
|
|
929
|
+
/** Unique identifier of the business connection on behalf of which the message will be unpinned */
|
|
930
|
+
business_connection_id?: string;
|
|
927
931
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
928
932
|
chat_id: number | string;
|
|
929
|
-
/** Identifier of
|
|
933
|
+
/** Identifier of the message to unpin. Required if business_connection_id is specified. If not specified, the most recent pinned message (by sending date) will be unpinned. */
|
|
930
934
|
message_id?: number;
|
|
931
935
|
}): true;
|
|
932
936
|
/** Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel. Returns True on success. */
|
|
@@ -1406,7 +1410,7 @@ export type ApiMethods<F> = {
|
|
|
1406
1410
|
name: string;
|
|
1407
1411
|
/** User identifier of the sticker set owner */
|
|
1408
1412
|
user_id: number;
|
|
1409
|
-
/** A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#
|
|
1413
|
+
/** A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animation-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail. */
|
|
1410
1414
|
thumbnail?: F | string;
|
|
1411
1415
|
/** Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a WEBM video */
|
|
1412
1416
|
format: "static" | "animated" | "video";
|