@grammyjs/types 3.11.1 → 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 CHANGED
@@ -17,7 +17,7 @@ In fact, this pattern is used for various types, namely:
17
17
 
18
18
  - `CallbackQuery`
19
19
  - `Chat`
20
- - `ChatFromGetChat`
20
+ - `ChatFullInfo`
21
21
  - `InlineKeyboardButton`
22
22
  - `KeyboardButton`
23
23
  - `Message`
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?: boolean;
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 */
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 a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned. */
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {