@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 +1 -1
- package/src/apiMethodsTypes.d.ts +6 -0
- package/src/manageTypes.d.ts +12 -0
- package/src/messageTypes.d.ts +4 -0
package/package.json
CHANGED
package/src/apiMethodsTypes.d.ts
CHANGED
|
@@ -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 */
|
package/src/manageTypes.d.ts
CHANGED
|
@@ -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 */
|
package/src/messageTypes.d.ts
CHANGED
|
@@ -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 {
|