@telegram.ts/types 1.3.3 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegram.ts/types",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "@telegram.ts/types: Comprehensive Type Declarations for Telegram Bot API with telegramsjs",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -750,6 +750,12 @@ export type ApiMethods<F> = {
750
750
  can_edit_messages?: boolean;
751
751
  /** Pass True if the administrator can delete messages of other users */
752
752
  can_delete_messages?: boolean;
753
+ /** Pass True if the administrator can post stories in the channel; channels only */
754
+ can_post_stories?: boolean;
755
+ /** Pass True if the administrator can edit stories posted by other users; channels only */
756
+ can_edit_stories?: boolean;
757
+ /** Pass True if the administrator can delete stories posted by other users; channels only */
758
+ can_delete_stories?: boolean;
753
759
  /** Pass True if the administrator can manage video chats */
754
760
  can_manage_video_chats?: boolean;
755
761
  /** Pass True if the administrator can restrict, ban or unban chat members */
@@ -248,6 +248,12 @@ export interface ChatAdministratorRights {
248
248
  can_edit_messages?: boolean;
249
249
  /** True, if the user is allowed to pin messages; groups and supergroups only */
250
250
  can_pin_messages?: boolean;
251
+ /** True, if the administrator can post stories in the channel; channels only */
252
+ can_post_stories?: boolean;
253
+ /** True, if the administrator can edit stories posted by other users; channels only */
254
+ can_edit_stories?: boolean;
255
+ /** True, if the administrator can delete stories posted by other users; channels only */
256
+ can_delete_stories?: boolean;
251
257
  /** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
252
258
  can_manage_topics?: boolean;
253
259
  }
@@ -306,6 +312,12 @@ export interface ChatMemberAdministrator {
306
312
  can_edit_messages?: boolean;
307
313
  /** True, if the user is allowed to pin messages; groups and supergroups only */
308
314
  can_pin_messages?: boolean;
315
+ /** True, if the administrator can post stories in the channel; channels only */
316
+ can_post_stories?: boolean;
317
+ /** True, if the administrator can edit stories posted by other users; channels only */
318
+ can_edit_stories?: boolean;
319
+ /** True, if the administrator can delete stories posted by other users; channels only */
320
+ can_delete_stories?: boolean;
309
321
  /** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
310
322
  can_manage_topics?: boolean;
311
323
  /** Custom title for this user */
@@ -667,8 +667,12 @@ export interface ChatShared {
667
667
  }
668
668
  /** This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link. */
669
669
  export interface WriteAccessAllowed {
670
+ /** True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess */
671
+ from_request?: boolean;
670
672
  /** Name of the Web App which was launched from a link */
671
673
  web_app_name?: string;
674
+ /** True, if the access was granted when the bot was added to the attachment or side menu */
675
+ from_attachment_menu?: boolean;
672
676
  }
673
677
  /** This object represents a service message about a video chat scheduled in the chat. */
674
678
  export interface VideoChatScheduled {