@grammyjs/types 2.8.0 → 2.8.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 +1 -1
- package/proxied.d.ts +10 -7
package/package.json
CHANGED
package/proxied.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
ChatFromGetChat,
|
|
13
13
|
ChatInviteLink,
|
|
14
14
|
ChatMember,
|
|
15
|
+
ChatMemberAdministrator,
|
|
16
|
+
ChatMemberOwner,
|
|
15
17
|
ChatPermissions,
|
|
16
18
|
File,
|
|
17
19
|
UserFromGetMe,
|
|
@@ -86,12 +88,13 @@ export interface InputFileProxy<F> {
|
|
|
86
88
|
/** The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput. */
|
|
87
89
|
max_connections?: number;
|
|
88
90
|
/** A list of the update types you want your bot to receive. For example, specify [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member (default). If not specified, the previous setting will be used.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
|
|
92
|
+
Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time. */
|
|
93
|
+
allowed_updates?: ReadonlyArray<Exclude<keyof Update, "update_id">>;
|
|
94
|
+
/** Pass True to drop all pending updates */
|
|
95
|
+
drop_pending_updates?: boolean;
|
|
96
|
+
/** A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you. */
|
|
97
|
+
secret_token?: string;
|
|
95
98
|
}): true;
|
|
96
99
|
|
|
97
100
|
/** Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. */
|
|
@@ -912,7 +915,7 @@ export interface InputFileProxy<F> {
|
|
|
912
915
|
getChatAdministrators(args: {
|
|
913
916
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
914
917
|
chat_id: number | string;
|
|
915
|
-
}):
|
|
918
|
+
}): Array<ChatMemberOwner | ChatMemberAdministrator>;
|
|
916
919
|
|
|
917
920
|
/** Use this method to get the number of members in a chat. Returns Int on success.
|
|
918
921
|
* @deprecated Use `getChatMemberCount` instead. */
|