@grammyjs/types 3.2.2 → 3.3.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/manage.d.ts +16 -4
- package/message.d.ts +7 -3
- package/methods.d.ts +9 -3
- package/package.json +1 -1
package/manage.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export interface ChatInviteLink {
|
|
|
208
208
|
export interface ChatAdministratorRights {
|
|
209
209
|
/** True, if the user's presence in the chat is hidden */
|
|
210
210
|
is_anonymous: boolean;
|
|
211
|
-
/** True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
211
|
+
/** True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
212
212
|
can_manage_chat: boolean;
|
|
213
213
|
/** True, if the administrator can delete messages of other users */
|
|
214
214
|
can_delete_messages: boolean;
|
|
@@ -222,12 +222,18 @@ export interface ChatAdministratorRights {
|
|
|
222
222
|
can_change_info: boolean;
|
|
223
223
|
/** True, if the user is allowed to invite new users to the chat */
|
|
224
224
|
can_invite_users: boolean;
|
|
225
|
-
/** True, if the administrator can post in the channel; channels only */
|
|
225
|
+
/** True, if the administrator can post messages in the channel; channels only */
|
|
226
226
|
can_post_messages?: boolean;
|
|
227
227
|
/** True, if the administrator can edit messages of other users and can pin messages; channels only */
|
|
228
228
|
can_edit_messages?: boolean;
|
|
229
229
|
/** True, if the user is allowed to pin messages; groups and supergroups only */
|
|
230
230
|
can_pin_messages?: boolean;
|
|
231
|
+
/** True, if the administrator can post stories in the channel; channels only */
|
|
232
|
+
can_post_stories?: boolean;
|
|
233
|
+
/** True, if the administrator can edit stories posted by other users; channels only */
|
|
234
|
+
can_edit_stories?: boolean;
|
|
235
|
+
/** True, if the administrator can delete stories posted by other users; channels only */
|
|
236
|
+
can_delete_stories?: boolean;
|
|
231
237
|
/** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
|
|
232
238
|
can_manage_topics?: boolean;
|
|
233
239
|
}
|
|
@@ -260,7 +266,7 @@ export interface ChatMemberAdministrator {
|
|
|
260
266
|
can_be_edited: boolean;
|
|
261
267
|
/** True, if the user's presence in the chat is hidden */
|
|
262
268
|
is_anonymous: boolean;
|
|
263
|
-
/** True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
269
|
+
/** True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
264
270
|
can_manage_chat: boolean;
|
|
265
271
|
/** True, if the administrator can delete messages of other users */
|
|
266
272
|
can_delete_messages: boolean;
|
|
@@ -274,12 +280,18 @@ export interface ChatMemberAdministrator {
|
|
|
274
280
|
can_change_info: boolean;
|
|
275
281
|
/** True, if the user is allowed to invite new users to the chat */
|
|
276
282
|
can_invite_users: boolean;
|
|
277
|
-
/** True, if the administrator can post in the channel; channels only */
|
|
283
|
+
/** True, if the administrator can post messages in the channel; channels only */
|
|
278
284
|
can_post_messages?: boolean;
|
|
279
285
|
/** True, if the administrator can edit messages of other users and can pin messages; channels only */
|
|
280
286
|
can_edit_messages?: boolean;
|
|
281
287
|
/** True, if the user is allowed to pin messages; groups and supergroups only */
|
|
282
288
|
can_pin_messages?: boolean;
|
|
289
|
+
/** True, if the administrator can post stories in the channel; channels only */
|
|
290
|
+
can_post_stories?: boolean;
|
|
291
|
+
/** True, if the administrator can edit stories posted by other users; channels only */
|
|
292
|
+
can_edit_stories?: boolean;
|
|
293
|
+
/** True, if the administrator can delete stories posted by other users; channels only */
|
|
294
|
+
can_delete_stories?: boolean;
|
|
283
295
|
/** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */
|
|
284
296
|
can_manage_topics?: boolean;
|
|
285
297
|
/** Custom title for this user */
|
package/message.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ export interface Message extends Message.MediaMessage {
|
|
|
180
180
|
chat_shared?: ChatShared;
|
|
181
181
|
/** The domain name of the website on which the user has logged in. More about Telegram Login » */
|
|
182
182
|
connected_website?: string;
|
|
183
|
-
/** Service message: the user allowed the bot
|
|
183
|
+
/** Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess */
|
|
184
184
|
write_access_allowed?: WriteAccessAllowed;
|
|
185
185
|
/** Telegram Passport data */
|
|
186
186
|
passport_data?: PassportData;
|
|
@@ -627,10 +627,14 @@ export interface ChatShared {
|
|
|
627
627
|
/** Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means. */
|
|
628
628
|
chat_id: number;
|
|
629
629
|
}
|
|
630
|
-
/** This object represents a service message about a user allowing a bot to write messages after adding
|
|
630
|
+
/** This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess. */
|
|
631
631
|
export interface WriteAccessAllowed {
|
|
632
|
-
/**
|
|
632
|
+
/** True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess */
|
|
633
|
+
from_request?: boolean;
|
|
634
|
+
/** Name of the Web App, if the access was granted when the Web App was launched from a link */
|
|
633
635
|
web_app_name?: string;
|
|
636
|
+
/** True, if the access was granted when the bot was added to the attachment or side menu */
|
|
637
|
+
from_attachment_menu?: boolean;
|
|
634
638
|
}
|
|
635
639
|
/** This object represents a service message about a video chat scheduled in the chat. */
|
|
636
640
|
export interface VideoChatScheduled {
|
package/methods.d.ts
CHANGED
|
@@ -624,14 +624,20 @@ export type ApiMethods<F> = {
|
|
|
624
624
|
user_id: number;
|
|
625
625
|
/** Pass True if the administrator's presence in the chat is hidden */
|
|
626
626
|
is_anonymous?: boolean;
|
|
627
|
-
/** Pass True if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
627
|
+
/** Pass True if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
|
|
628
628
|
can_manage_chat?: boolean;
|
|
629
|
-
/** Pass True if the administrator can
|
|
629
|
+
/** Pass True if the administrator can post messages in the channel; channels only */
|
|
630
630
|
can_post_messages?: boolean;
|
|
631
|
-
/** Pass True if the administrator can edit messages of other users and can pin messages
|
|
631
|
+
/** Pass True if the administrator can edit messages of other users and can pin messages; channels only */
|
|
632
632
|
can_edit_messages?: boolean;
|
|
633
633
|
/** Pass True if the administrator can delete messages of other users */
|
|
634
634
|
can_delete_messages?: boolean;
|
|
635
|
+
/** Pass True if the administrator can post stories in the channel; channels only */
|
|
636
|
+
can_post_stories?: boolean;
|
|
637
|
+
/** Pass True if the administrator can edit stories posted by other users; channels only */
|
|
638
|
+
can_edit_stories?: boolean;
|
|
639
|
+
/** Pass True if the administrator can delete stories posted by other users; channels only */
|
|
640
|
+
can_delete_stories?: boolean;
|
|
635
641
|
/** Pass True if the administrator can manage video chats */
|
|
636
642
|
can_manage_video_chats?: boolean;
|
|
637
643
|
/** Pass True if the administrator can restrict, ban or unban chat members */
|