@grammyjs/types 2.9.0 → 2.9.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 +2 -2
package/package.json
CHANGED
package/proxied.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface InputFileProxy<F> {
|
|
|
49
49
|
undefined ? {} : NonNullable<Params<M, F>[0]>;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
/** Wrapper type to bundle all methods of the Telegram API */
|
|
52
|
+
/** Wrapper type to bundle all methods of the Telegram Bot API */
|
|
53
53
|
Telegram: {
|
|
54
54
|
/** Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.
|
|
55
55
|
|
|
@@ -66,7 +66,7 @@ export interface InputFileProxy<F> {
|
|
|
66
66
|
/** 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.
|
|
67
67
|
|
|
68
68
|
Please note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time. */
|
|
69
|
-
allowed_updates?:
|
|
69
|
+
allowed_updates?: ReadonlyArray<Exclude<keyof Update, "update_id">>;
|
|
70
70
|
}): Update[];
|
|
71
71
|
|
|
72
72
|
/** Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.
|