@grammyjs/types 3.22.1 → 3.22.2

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
@@ -306,8 +306,8 @@ export declare namespace ChatFullInfo {
306
306
  pinned_message?: Message;
307
307
  /** Default chat member permissions, for groups and supergroups */
308
308
  permissions?: ChatPermissions;
309
- /** True, if gifts can be sent to the chat */
310
- can_send_gift?: true;
309
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
310
+ accepted_gift_types: AcceptedGiftTypes;
311
311
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
312
312
  can_send_paid_media?: undefined;
313
313
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
@@ -401,8 +401,8 @@ export declare namespace ChatFullInfo {
401
401
  pinned_message?: Message;
402
402
  /** Default chat member permissions, for groups and supergroups */
403
403
  permissions?: ChatPermissions;
404
- /** True, if gifts can be sent to the chat */
405
- can_send_gift?: true;
404
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
405
+ accepted_gift_types: AcceptedGiftTypes;
406
406
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
407
407
  can_send_paid_media?: undefined;
408
408
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
@@ -496,8 +496,8 @@ export declare namespace ChatFullInfo {
496
496
  pinned_message?: Message;
497
497
  /** Default chat member permissions, for groups and supergroups */
498
498
  permissions?: undefined;
499
- /** True, if gifts can be sent to the chat */
500
- can_send_gift?: true;
499
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
500
+ accepted_gift_types: AcceptedGiftTypes;
501
501
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
502
502
  can_send_paid_media?: true;
503
503
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
package/message.d.ts CHANGED
@@ -79,7 +79,7 @@ export declare namespace Message {
79
79
  /** True, if the message media is covered by a spoiler animation */
80
80
  has_media_spoiler?: true;
81
81
  }
82
- type TextMessage = CommonMessage & MsgWith<"text">;
82
+ type TextMessage = CommonMessage & MsgWith<"text"> & Partial<MsgWith<"entities">>;
83
83
  type AudioMessage = CaptionableMessage & MsgWith<"audio">;
84
84
  type DocumentMessage = CaptionableMessage & MsgWith<"document">;
85
85
  type AnimationMessage = DocumentMessage & MsgWith<"animation">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.22.1",
3
+ "version": "3.22.2",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {