You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars. */
685
685
currency: string;
686
-
/** Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. */
686
+
/** Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. */
687
687
prices: LabeledPrice[];
688
688
/** Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars. */
/** If non-empty, the list of all active chat usernames; for private chats, supergroups and channels */
228
230
active_usernames?: string[];
231
+
/** Information about the corresponding channel chat; for direct messages chats only */
232
+
parent_chat?: Chat.ChannelChat;
229
233
/** List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed */
230
234
available_reactions?: ReactionType[];
231
235
/** Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background */
@@ -319,6 +323,40 @@ export type ChatFullInfo =
319
323
|ChatFullInfo.SupergroupChat
320
324
|ChatFullInfo.ChannelChat;
321
325
326
+
/** Describes the price of a suggested post. */
327
+
exportinterfaceSuggestedPostPrice{
328
+
/** Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins */
329
+
currency: string;
330
+
/** The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000. */
331
+
amount: number;
332
+
}
333
+
334
+
/** Contains information about a suggested post. */
335
+
exportinterfaceSuggestedPostInfo{
336
+
/** State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”. */
337
+
state: "pending"|"approved"|"declined";
338
+
/** Proposed price of the post. If the field is omitted, then the post is unpaid. */
339
+
price?: SuggestedPostPrice;
340
+
/** Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it. */
341
+
send_date?: number;
342
+
}
343
+
344
+
/** Contains parameters of a post that is being suggested by the bot. */
345
+
exportinterfaceSuggestedPostParameters{
346
+
/** Proposed price for the post. If the field is omitted, then the post is unpaid. */
347
+
price?: SuggestedPostPrice;
348
+
/** Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it. */
349
+
send_date?: number;
350
+
}
351
+
352
+
/** Describes a topic of a direct messages chat. */
353
+
exportinterfaceDirectMessagesTopic{
354
+
/** Unique identifier of the topic */
355
+
topic_id: number;
356
+
/** Information about the user that created the topic. Currently, it is always present */
357
+
user: User;
358
+
}
359
+
322
360
/** This object represent a user's profile pictures. */
323
361
exportinterfaceUserProfilePhotos{
324
362
/** Total number of profile pictures the target user has */
/** True, if the user's presence in the chat is hidden */
371
409
is_anonymous: boolean;
372
-
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. */
410
+
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege. */
373
411
can_manage_chat: boolean;
374
412
/** True, if the administrator can delete messages of other users */
/** True, if the user's presence in the chat is hidden */
439
479
is_anonymous: boolean;
440
-
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. */
480
+
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege. */
441
481
can_manage_chat: boolean;
442
482
/** True, if the administrator can delete messages of other users */
/** If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account. */
32
+
/** If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account. */
33
33
switch_inline_query: string;
34
34
}
35
35
exportinterfaceSwitchInlineCurrentChatButton
36
36
extendsAbstractInlineKeyboardButton{
37
37
/** If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.
38
38
39
-
This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account. */
39
+
This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account. */
40
40
switch_inline_query_current_chat: string;
41
41
}
42
42
exportinterfaceSwitchInlineChosenChatButton
43
43
extendsAbstractInlineKeyboardButton{
44
-
/** If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account. */
44
+
/** If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account. */
0 commit comments