@grammyjs/types 3.0.1 → 3.0.3

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/manage.d.ts CHANGED
@@ -142,6 +142,10 @@ export declare namespace Chat {
142
142
  }
143
143
  /** Internal type representing supergroup chats returned from `getChat`. */
144
144
  export interface SupergroupGetChat extends SupergroupChat, NonGroupGetChat, MultiUserGetChat, LargeGetChat {
145
+ /** True, if users need to join the supergroup before they can send messages. Returned only in getChat. */
146
+ join_to_send_messages?: true;
147
+ /** True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. */
148
+ join_by_request?: true;
145
149
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat. */
146
150
  slow_mode_delay?: number;
147
151
  /** True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat. */
@@ -150,10 +154,6 @@ export declare namespace Chat {
150
154
  sticker_set_name?: string;
151
155
  /** For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
152
156
  location?: ChatLocation;
153
- /** True, if users need to join the supergroup before they can send messages. Returned only in getChat. */
154
- join_to_send_messages?: true;
155
- /** True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. */
156
- join_by_request?: true;
157
157
  }
158
158
  /** Internal type representing channel chats returned from `getChat`. */
159
159
  export interface ChannelGetChat extends ChannelChat, NonGroupGetChat, LargeGetChat {
package/methods.d.ts CHANGED
@@ -1080,9 +1080,11 @@ export type ApiMethods<F> = {
1080
1080
  sendSticker(args: {
1081
1081
  /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
1082
1082
  chat_id: number | string;
1083
+ /** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
1084
+ message_thread_id?: number;
1083
1085
  /** Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP or .TGS sticker using multipart/form-data. Video stickers can only be sent by a file_id. Animated stickers can't be sent via an HTTP URL. */
1084
1086
  sticker: F | string;
1085
- /** Emoji associated with the sticker; only for uploaded stickers */
1087
+ /** Emoji associated with the sticker; only for just uploaded stickers */
1086
1088
  emoji?: string;
1087
1089
  /** Sends the message silently. Users will receive a notification with no sound. */
1088
1090
  disable_notification?: boolean;
@@ -1123,7 +1125,7 @@ export type ApiMethods<F> = {
1123
1125
  /** Sticker set title, 1-64 characters */
1124
1126
  title: string;
1125
1127
  /** A list of 1-50 initial stickers to be added to the sticker set */
1126
- stickers: InputSticker<F>;
1128
+ stickers: InputSticker<F>[];
1127
1129
  /** Format of the sticker, must be one of “static”, “animated”, “video” */
1128
1130
  sticker_format: "static" | "animated" | "video";
1129
1131
  /** Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {