@effect-ak/tg-bot-client 0.0.4 → 0.0.7
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/dist/cjs/client/_client.js +1 -1
- package/dist/cjs/client/download-file.js +28 -9
- package/dist/cjs/client/errors.js +19 -0
- package/dist/cjs/client/execute-request.js +48 -11
- package/dist/cjs/client/response.js +13 -1
- package/dist/dts/client/_client.d.ts +9 -2
- package/dist/dts/client/download-file.d.ts +7 -1
- package/dist/dts/client/errors.d.ts +21 -0
- package/dist/dts/client/execute-request.d.ts +10 -2
- package/dist/dts/client/request.d.ts +1 -1
- package/dist/dts/client/response.d.ts +1 -1
- package/dist/dts/specification/api.d.ts +131 -132
- package/dist/esm/client/_client.js +1 -1
- package/dist/esm/client/download-file.js +27 -8
- package/dist/esm/client/errors.js +12 -0
- package/dist/esm/client/execute-request.js +44 -11
- package/dist/esm/client/response.js +13 -4
- package/package.json +2 -1
- package/readme.md +11 -2
- package/dist/cjs/client/factory.js +0 -29
- package/dist/dts/client/factory.d.ts +0 -9
- package/dist/esm/client/factory.js +0 -23
|
@@ -620,7 +620,7 @@ export interface Api {
|
|
|
620
620
|
*/
|
|
621
621
|
get_game_high_scores(_: GetGameHighScoresInput): T.GameHighScore[];
|
|
622
622
|
}
|
|
623
|
-
interface GetUpdatesInput
|
|
623
|
+
export interface GetUpdatesInput {
|
|
624
624
|
/**
|
|
625
625
|
* Identifier of the first update to be returned
|
|
626
626
|
* Must be greater by one than the highest among the identifiers of previously received updates
|
|
@@ -654,7 +654,7 @@ interface GetUpdatesInput extends Record<string, unknown> {
|
|
|
654
654
|
*/
|
|
655
655
|
allowed_updates?: string[];
|
|
656
656
|
}
|
|
657
|
-
interface SetWebhookInput
|
|
657
|
+
export interface SetWebhookInput {
|
|
658
658
|
/**
|
|
659
659
|
* HTTPS URL to send updates to
|
|
660
660
|
* Use an empty string to remove webhook integration
|
|
@@ -691,19 +691,19 @@ interface SetWebhookInput extends Record<string, unknown> {
|
|
|
691
691
|
*/
|
|
692
692
|
secret_token?: string;
|
|
693
693
|
}
|
|
694
|
-
interface DeleteWebhookInput
|
|
694
|
+
export interface DeleteWebhookInput {
|
|
695
695
|
/** Pass True to drop all pending updates */
|
|
696
696
|
drop_pending_updates?: boolean;
|
|
697
697
|
}
|
|
698
|
-
interface GetWebhookInfoInput
|
|
698
|
+
export interface GetWebhookInfoInput {
|
|
699
699
|
}
|
|
700
|
-
interface GetMeInput
|
|
700
|
+
export interface GetMeInput {
|
|
701
701
|
}
|
|
702
|
-
interface LogOutInput
|
|
702
|
+
export interface LogOutInput {
|
|
703
703
|
}
|
|
704
|
-
interface CloseInput
|
|
704
|
+
export interface CloseInput {
|
|
705
705
|
}
|
|
706
|
-
interface SendMessageInput
|
|
706
|
+
export interface SendMessageInput {
|
|
707
707
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
708
708
|
business_connection_id?: string;
|
|
709
709
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -744,7 +744,7 @@ interface SendMessageInput extends Record<string, unknown> {
|
|
|
744
744
|
*/
|
|
745
745
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
746
746
|
}
|
|
747
|
-
interface ForwardMessageInput
|
|
747
|
+
export interface ForwardMessageInput {
|
|
748
748
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
749
749
|
chat_id: number | string;
|
|
750
750
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
@@ -761,7 +761,7 @@ interface ForwardMessageInput extends Record<string, unknown> {
|
|
|
761
761
|
/** Message identifier in the chat specified in from_chat_id */
|
|
762
762
|
message_id: number;
|
|
763
763
|
}
|
|
764
|
-
interface ForwardMessagesInput
|
|
764
|
+
export interface ForwardMessagesInput {
|
|
765
765
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
766
766
|
chat_id: number | string;
|
|
767
767
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
@@ -781,7 +781,7 @@ interface ForwardMessagesInput extends Record<string, unknown> {
|
|
|
781
781
|
/** Protects the contents of the forwarded messages from forwarding and saving */
|
|
782
782
|
protect_content?: boolean;
|
|
783
783
|
}
|
|
784
|
-
interface CopyMessageInput
|
|
784
|
+
export interface CopyMessageInput {
|
|
785
785
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
786
786
|
chat_id: number | string;
|
|
787
787
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
@@ -828,7 +828,7 @@ interface CopyMessageInput extends Record<string, unknown> {
|
|
|
828
828
|
*/
|
|
829
829
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
830
830
|
}
|
|
831
|
-
interface CopyMessagesInput
|
|
831
|
+
export interface CopyMessagesInput {
|
|
832
832
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
833
833
|
chat_id: number | string;
|
|
834
834
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
@@ -850,7 +850,7 @@ interface CopyMessagesInput extends Record<string, unknown> {
|
|
|
850
850
|
/** Pass True to copy the messages without their captions */
|
|
851
851
|
remove_caption?: boolean;
|
|
852
852
|
}
|
|
853
|
-
interface SendPhotoInput
|
|
853
|
+
export interface SendPhotoInput {
|
|
854
854
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
855
855
|
business_connection_id?: string;
|
|
856
856
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -902,7 +902,7 @@ interface SendPhotoInput extends Record<string, unknown> {
|
|
|
902
902
|
*/
|
|
903
903
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
904
904
|
}
|
|
905
|
-
interface SendAudioInput
|
|
905
|
+
export interface SendAudioInput {
|
|
906
906
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
907
907
|
business_connection_id?: string;
|
|
908
908
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -962,7 +962,7 @@ interface SendAudioInput extends Record<string, unknown> {
|
|
|
962
962
|
*/
|
|
963
963
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
964
964
|
}
|
|
965
|
-
interface SendDocumentInput
|
|
965
|
+
export interface SendDocumentInput {
|
|
966
966
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
967
967
|
business_connection_id?: string;
|
|
968
968
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1018,7 +1018,7 @@ interface SendDocumentInput extends Record<string, unknown> {
|
|
|
1018
1018
|
*/
|
|
1019
1019
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1020
1020
|
}
|
|
1021
|
-
interface SendVideoInput
|
|
1021
|
+
export interface SendVideoInput {
|
|
1022
1022
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1023
1023
|
business_connection_id?: string;
|
|
1024
1024
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1084,7 +1084,7 @@ interface SendVideoInput extends Record<string, unknown> {
|
|
|
1084
1084
|
*/
|
|
1085
1085
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1086
1086
|
}
|
|
1087
|
-
interface SendAnimationInput
|
|
1087
|
+
export interface SendAnimationInput {
|
|
1088
1088
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1089
1089
|
business_connection_id?: string;
|
|
1090
1090
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1148,7 +1148,7 @@ interface SendAnimationInput extends Record<string, unknown> {
|
|
|
1148
1148
|
*/
|
|
1149
1149
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1150
1150
|
}
|
|
1151
|
-
interface SendVoiceInput
|
|
1151
|
+
export interface SendVoiceInput {
|
|
1152
1152
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1153
1153
|
business_connection_id?: string;
|
|
1154
1154
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1195,7 +1195,7 @@ interface SendVoiceInput extends Record<string, unknown> {
|
|
|
1195
1195
|
*/
|
|
1196
1196
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1197
1197
|
}
|
|
1198
|
-
interface SendVideoNoteInput
|
|
1198
|
+
export interface SendVideoNoteInput {
|
|
1199
1199
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1200
1200
|
business_connection_id?: string;
|
|
1201
1201
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1249,7 +1249,7 @@ interface SendVideoNoteInput extends Record<string, unknown> {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1251
1251
|
}
|
|
1252
|
-
interface SendPaidMediaInput
|
|
1252
|
+
export interface SendPaidMediaInput {
|
|
1253
1253
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1254
1254
|
business_connection_id?: string;
|
|
1255
1255
|
/**
|
|
@@ -1299,7 +1299,7 @@ interface SendPaidMediaInput extends Record<string, unknown> {
|
|
|
1299
1299
|
*/
|
|
1300
1300
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1301
1301
|
}
|
|
1302
|
-
interface SendMediaGroupInput
|
|
1302
|
+
export interface SendMediaGroupInput {
|
|
1303
1303
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1304
1304
|
business_connection_id?: string;
|
|
1305
1305
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1326,7 +1326,7 @@ interface SendMediaGroupInput extends Record<string, unknown> {
|
|
|
1326
1326
|
/** Description of the message to reply to */
|
|
1327
1327
|
reply_parameters?: T.ReplyParameters;
|
|
1328
1328
|
}
|
|
1329
|
-
interface SendLocationInput
|
|
1329
|
+
export interface SendLocationInput {
|
|
1330
1330
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1331
1331
|
business_connection_id?: string;
|
|
1332
1332
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1374,7 +1374,7 @@ interface SendLocationInput extends Record<string, unknown> {
|
|
|
1374
1374
|
*/
|
|
1375
1375
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1376
1376
|
}
|
|
1377
|
-
interface SendVenueInput
|
|
1377
|
+
export interface SendVenueInput {
|
|
1378
1378
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1379
1379
|
business_connection_id?: string;
|
|
1380
1380
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1426,7 +1426,7 @@ interface SendVenueInput extends Record<string, unknown> {
|
|
|
1426
1426
|
*/
|
|
1427
1427
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1428
1428
|
}
|
|
1429
|
-
interface SendContactInput
|
|
1429
|
+
export interface SendContactInput {
|
|
1430
1430
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1431
1431
|
business_connection_id?: string;
|
|
1432
1432
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1464,7 +1464,7 @@ interface SendContactInput extends Record<string, unknown> {
|
|
|
1464
1464
|
*/
|
|
1465
1465
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1466
1466
|
}
|
|
1467
|
-
interface SendPollInput
|
|
1467
|
+
export interface SendPollInput {
|
|
1468
1468
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1469
1469
|
business_connection_id?: string;
|
|
1470
1470
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1545,7 +1545,7 @@ interface SendPollInput extends Record<string, unknown> {
|
|
|
1545
1545
|
*/
|
|
1546
1546
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1547
1547
|
}
|
|
1548
|
-
interface SendDiceInput
|
|
1548
|
+
export interface SendDiceInput {
|
|
1549
1549
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
1550
1550
|
business_connection_id?: string;
|
|
1551
1551
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1582,7 +1582,7 @@ interface SendDiceInput extends Record<string, unknown> {
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
1584
1584
|
}
|
|
1585
|
-
interface SendChatActionInput
|
|
1585
|
+
export interface SendChatActionInput {
|
|
1586
1586
|
/** Unique identifier of the business connection on behalf of which the action will be sent */
|
|
1587
1587
|
business_connection_id?: string;
|
|
1588
1588
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1595,7 +1595,7 @@ interface SendChatActionInput extends Record<string, unknown> {
|
|
|
1595
1595
|
*/
|
|
1596
1596
|
action: string;
|
|
1597
1597
|
}
|
|
1598
|
-
interface SetMessageReactionInput
|
|
1598
|
+
export interface SetMessageReactionInput {
|
|
1599
1599
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1600
1600
|
chat_id: number | string;
|
|
1601
1601
|
/**
|
|
@@ -1613,7 +1613,7 @@ interface SetMessageReactionInput extends Record<string, unknown> {
|
|
|
1613
1613
|
/** Pass True to set the reaction with a big animation */
|
|
1614
1614
|
is_big?: boolean;
|
|
1615
1615
|
}
|
|
1616
|
-
interface GetUserProfilePhotosInput
|
|
1616
|
+
export interface GetUserProfilePhotosInput {
|
|
1617
1617
|
/** Unique identifier of the target user */
|
|
1618
1618
|
user_id: number;
|
|
1619
1619
|
/**
|
|
@@ -1628,7 +1628,7 @@ interface GetUserProfilePhotosInput extends Record<string, unknown> {
|
|
|
1628
1628
|
*/
|
|
1629
1629
|
limit?: number;
|
|
1630
1630
|
}
|
|
1631
|
-
interface SetUserEmojiStatusInput
|
|
1631
|
+
export interface SetUserEmojiStatusInput {
|
|
1632
1632
|
/** Unique identifier of the target user */
|
|
1633
1633
|
user_id: number;
|
|
1634
1634
|
/**
|
|
@@ -1639,11 +1639,11 @@ interface SetUserEmojiStatusInput extends Record<string, unknown> {
|
|
|
1639
1639
|
/** Expiration date of the emoji status, if any */
|
|
1640
1640
|
emoji_status_expiration_date?: number;
|
|
1641
1641
|
}
|
|
1642
|
-
interface GetFileInput
|
|
1642
|
+
export interface GetFileInput {
|
|
1643
1643
|
/** File identifier to get information about */
|
|
1644
1644
|
file_id: string;
|
|
1645
1645
|
}
|
|
1646
|
-
interface BanChatMemberInput
|
|
1646
|
+
export interface BanChatMemberInput {
|
|
1647
1647
|
/** Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) */
|
|
1648
1648
|
chat_id: number | string;
|
|
1649
1649
|
/** Unique identifier of the target user */
|
|
@@ -1661,7 +1661,7 @@ interface BanChatMemberInput extends Record<string, unknown> {
|
|
|
1661
1661
|
*/
|
|
1662
1662
|
revoke_messages?: boolean;
|
|
1663
1663
|
}
|
|
1664
|
-
interface UnbanChatMemberInput
|
|
1664
|
+
export interface UnbanChatMemberInput {
|
|
1665
1665
|
/** Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) */
|
|
1666
1666
|
chat_id: number | string;
|
|
1667
1667
|
/** Unique identifier of the target user */
|
|
@@ -1669,7 +1669,7 @@ interface UnbanChatMemberInput extends Record<string, unknown> {
|
|
|
1669
1669
|
/** Do nothing if the user is not banned */
|
|
1670
1670
|
only_if_banned?: boolean;
|
|
1671
1671
|
}
|
|
1672
|
-
interface RestrictChatMemberInput
|
|
1672
|
+
export interface RestrictChatMemberInput {
|
|
1673
1673
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1674
1674
|
chat_id: number | string;
|
|
1675
1675
|
/** Unique identifier of the target user */
|
|
@@ -1687,7 +1687,7 @@ interface RestrictChatMemberInput extends Record<string, unknown> {
|
|
|
1687
1687
|
*/
|
|
1688
1688
|
until_date?: number;
|
|
1689
1689
|
}
|
|
1690
|
-
interface PromoteChatMemberInput
|
|
1690
|
+
export interface PromoteChatMemberInput {
|
|
1691
1691
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1692
1692
|
chat_id: number | string;
|
|
1693
1693
|
/** Unique identifier of the target user */
|
|
@@ -1726,7 +1726,7 @@ interface PromoteChatMemberInput extends Record<string, unknown> {
|
|
|
1726
1726
|
/** Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only */
|
|
1727
1727
|
can_manage_topics?: boolean;
|
|
1728
1728
|
}
|
|
1729
|
-
interface SetChatAdministratorCustomTitleInput
|
|
1729
|
+
export interface SetChatAdministratorCustomTitleInput {
|
|
1730
1730
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1731
1731
|
chat_id: number | string;
|
|
1732
1732
|
/** Unique identifier of the target user */
|
|
@@ -1734,19 +1734,19 @@ interface SetChatAdministratorCustomTitleInput extends Record<string, unknown> {
|
|
|
1734
1734
|
/** New custom title for the administrator; 0-16 characters, emoji are not allowed */
|
|
1735
1735
|
custom_title: string;
|
|
1736
1736
|
}
|
|
1737
|
-
interface BanChatSenderChatInput
|
|
1737
|
+
export interface BanChatSenderChatInput {
|
|
1738
1738
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1739
1739
|
chat_id: number | string;
|
|
1740
1740
|
/** Unique identifier of the target sender chat */
|
|
1741
1741
|
sender_chat_id: number;
|
|
1742
1742
|
}
|
|
1743
|
-
interface UnbanChatSenderChatInput
|
|
1743
|
+
export interface UnbanChatSenderChatInput {
|
|
1744
1744
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1745
1745
|
chat_id: number | string;
|
|
1746
1746
|
/** Unique identifier of the target sender chat */
|
|
1747
1747
|
sender_chat_id: number;
|
|
1748
1748
|
}
|
|
1749
|
-
interface SetChatPermissionsInput
|
|
1749
|
+
export interface SetChatPermissionsInput {
|
|
1750
1750
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1751
1751
|
chat_id: number | string;
|
|
1752
1752
|
/** A JSON-serialized object for new default chat permissions */
|
|
@@ -1757,11 +1757,11 @@ interface SetChatPermissionsInput extends Record<string, unknown> {
|
|
|
1757
1757
|
*/
|
|
1758
1758
|
use_independent_chat_permissions?: boolean;
|
|
1759
1759
|
}
|
|
1760
|
-
interface ExportChatInviteLinkInput
|
|
1760
|
+
export interface ExportChatInviteLinkInput {
|
|
1761
1761
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1762
1762
|
chat_id: number | string;
|
|
1763
1763
|
}
|
|
1764
|
-
interface CreateChatInviteLinkInput
|
|
1764
|
+
export interface CreateChatInviteLinkInput {
|
|
1765
1765
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1766
1766
|
chat_id: number | string;
|
|
1767
1767
|
/** Invite link name; 0-32 characters */
|
|
@@ -1776,7 +1776,7 @@ interface CreateChatInviteLinkInput extends Record<string, unknown> {
|
|
|
1776
1776
|
*/
|
|
1777
1777
|
creates_join_request?: boolean;
|
|
1778
1778
|
}
|
|
1779
|
-
interface EditChatInviteLinkInput
|
|
1779
|
+
export interface EditChatInviteLinkInput {
|
|
1780
1780
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1781
1781
|
chat_id: number | string;
|
|
1782
1782
|
/** The invite link to edit */
|
|
@@ -1793,7 +1793,7 @@ interface EditChatInviteLinkInput extends Record<string, unknown> {
|
|
|
1793
1793
|
*/
|
|
1794
1794
|
creates_join_request?: boolean;
|
|
1795
1795
|
}
|
|
1796
|
-
interface CreateChatSubscriptionInviteLinkInput
|
|
1796
|
+
export interface CreateChatSubscriptionInviteLinkInput {
|
|
1797
1797
|
/** Unique identifier for the target channel chat or username of the target channel (in the format @channelusername) */
|
|
1798
1798
|
chat_id: number | string;
|
|
1799
1799
|
/** Invite link name; 0-32 characters */
|
|
@@ -1806,7 +1806,7 @@ interface CreateChatSubscriptionInviteLinkInput extends Record<string, unknown>
|
|
|
1806
1806
|
/** The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-2500 */
|
|
1807
1807
|
subscription_price: number;
|
|
1808
1808
|
}
|
|
1809
|
-
interface EditChatSubscriptionInviteLinkInput
|
|
1809
|
+
export interface EditChatSubscriptionInviteLinkInput {
|
|
1810
1810
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1811
1811
|
chat_id: number | string;
|
|
1812
1812
|
/** The invite link to edit */
|
|
@@ -1814,47 +1814,47 @@ interface EditChatSubscriptionInviteLinkInput extends Record<string, unknown> {
|
|
|
1814
1814
|
/** Invite link name; 0-32 characters */
|
|
1815
1815
|
name?: string;
|
|
1816
1816
|
}
|
|
1817
|
-
interface RevokeChatInviteLinkInput
|
|
1817
|
+
export interface RevokeChatInviteLinkInput {
|
|
1818
1818
|
/** Unique identifier of the target chat or username of the target channel (in the format @channelusername) */
|
|
1819
1819
|
chat_id: number | string;
|
|
1820
1820
|
/** The invite link to revoke */
|
|
1821
1821
|
invite_link: string;
|
|
1822
1822
|
}
|
|
1823
|
-
interface ApproveChatJoinRequestInput
|
|
1823
|
+
export interface ApproveChatJoinRequestInput {
|
|
1824
1824
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1825
1825
|
chat_id: number | string;
|
|
1826
1826
|
/** Unique identifier of the target user */
|
|
1827
1827
|
user_id: number;
|
|
1828
1828
|
}
|
|
1829
|
-
interface DeclineChatJoinRequestInput
|
|
1829
|
+
export interface DeclineChatJoinRequestInput {
|
|
1830
1830
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1831
1831
|
chat_id: number | string;
|
|
1832
1832
|
/** Unique identifier of the target user */
|
|
1833
1833
|
user_id: number;
|
|
1834
1834
|
}
|
|
1835
|
-
interface SetChatPhotoInput
|
|
1835
|
+
export interface SetChatPhotoInput {
|
|
1836
1836
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1837
1837
|
chat_id: number | string;
|
|
1838
1838
|
/** New chat photo, uploaded using multipart/form-data */
|
|
1839
1839
|
photo: T.InputFile;
|
|
1840
1840
|
}
|
|
1841
|
-
interface DeleteChatPhotoInput
|
|
1841
|
+
export interface DeleteChatPhotoInput {
|
|
1842
1842
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1843
1843
|
chat_id: number | string;
|
|
1844
1844
|
}
|
|
1845
|
-
interface SetChatTitleInput
|
|
1845
|
+
export interface SetChatTitleInput {
|
|
1846
1846
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1847
1847
|
chat_id: number | string;
|
|
1848
1848
|
/** New chat title, 1-128 characters */
|
|
1849
1849
|
title: string;
|
|
1850
1850
|
}
|
|
1851
|
-
interface SetChatDescriptionInput
|
|
1851
|
+
export interface SetChatDescriptionInput {
|
|
1852
1852
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1853
1853
|
chat_id: number | string;
|
|
1854
1854
|
/** New chat description, 0-255 characters */
|
|
1855
1855
|
description?: string;
|
|
1856
1856
|
}
|
|
1857
|
-
interface PinChatMessageInput
|
|
1857
|
+
export interface PinChatMessageInput {
|
|
1858
1858
|
/** Unique identifier of the business connection on behalf of which the message will be pinned */
|
|
1859
1859
|
business_connection_id?: string;
|
|
1860
1860
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1867,7 +1867,7 @@ interface PinChatMessageInput extends Record<string, unknown> {
|
|
|
1867
1867
|
*/
|
|
1868
1868
|
disable_notification?: boolean;
|
|
1869
1869
|
}
|
|
1870
|
-
interface UnpinChatMessageInput
|
|
1870
|
+
export interface UnpinChatMessageInput {
|
|
1871
1871
|
/** Unique identifier of the business connection on behalf of which the message will be unpinned */
|
|
1872
1872
|
business_connection_id?: string;
|
|
1873
1873
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -1879,45 +1879,45 @@ interface UnpinChatMessageInput extends Record<string, unknown> {
|
|
|
1879
1879
|
*/
|
|
1880
1880
|
message_id?: number;
|
|
1881
1881
|
}
|
|
1882
|
-
interface UnpinAllChatMessagesInput
|
|
1882
|
+
export interface UnpinAllChatMessagesInput {
|
|
1883
1883
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
1884
1884
|
chat_id: number | string;
|
|
1885
1885
|
}
|
|
1886
|
-
interface LeaveChatInput
|
|
1886
|
+
export interface LeaveChatInput {
|
|
1887
1887
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
1888
1888
|
chat_id: number | string;
|
|
1889
1889
|
}
|
|
1890
|
-
interface GetChatInput
|
|
1890
|
+
export interface GetChatInput {
|
|
1891
1891
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
1892
1892
|
chat_id: number | string;
|
|
1893
1893
|
}
|
|
1894
|
-
interface GetChatAdministratorsInput
|
|
1894
|
+
export interface GetChatAdministratorsInput {
|
|
1895
1895
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
1896
1896
|
chat_id: number | string;
|
|
1897
1897
|
}
|
|
1898
|
-
interface GetChatMemberCountInput
|
|
1898
|
+
export interface GetChatMemberCountInput {
|
|
1899
1899
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
1900
1900
|
chat_id: number | string;
|
|
1901
1901
|
}
|
|
1902
|
-
interface GetChatMemberInput
|
|
1902
|
+
export interface GetChatMemberInput {
|
|
1903
1903
|
/** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
|
|
1904
1904
|
chat_id: number | string;
|
|
1905
1905
|
/** Unique identifier of the target user */
|
|
1906
1906
|
user_id: number;
|
|
1907
1907
|
}
|
|
1908
|
-
interface SetChatStickerSetInput
|
|
1908
|
+
export interface SetChatStickerSetInput {
|
|
1909
1909
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1910
1910
|
chat_id: number | string;
|
|
1911
1911
|
/** Name of the sticker set to be set as the group sticker set */
|
|
1912
1912
|
sticker_set_name: string;
|
|
1913
1913
|
}
|
|
1914
|
-
interface DeleteChatStickerSetInput
|
|
1914
|
+
export interface DeleteChatStickerSetInput {
|
|
1915
1915
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1916
1916
|
chat_id: number | string;
|
|
1917
1917
|
}
|
|
1918
|
-
interface GetForumTopicIconStickersInput
|
|
1918
|
+
export interface GetForumTopicIconStickersInput {
|
|
1919
1919
|
}
|
|
1920
|
-
interface CreateForumTopicInput
|
|
1920
|
+
export interface CreateForumTopicInput {
|
|
1921
1921
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1922
1922
|
chat_id: number | string;
|
|
1923
1923
|
/** Topic name, 1-128 characters */
|
|
@@ -1933,7 +1933,7 @@ interface CreateForumTopicInput extends Record<string, unknown> {
|
|
|
1933
1933
|
*/
|
|
1934
1934
|
icon_custom_emoji_id?: string;
|
|
1935
1935
|
}
|
|
1936
|
-
interface EditForumTopicInput
|
|
1936
|
+
export interface EditForumTopicInput {
|
|
1937
1937
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1938
1938
|
chat_id: number | string;
|
|
1939
1939
|
/** Unique identifier for the target message thread of the forum topic */
|
|
@@ -1951,57 +1951,57 @@ interface EditForumTopicInput extends Record<string, unknown> {
|
|
|
1951
1951
|
*/
|
|
1952
1952
|
icon_custom_emoji_id?: string;
|
|
1953
1953
|
}
|
|
1954
|
-
interface CloseForumTopicInput
|
|
1954
|
+
export interface CloseForumTopicInput {
|
|
1955
1955
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1956
1956
|
chat_id: number | string;
|
|
1957
1957
|
/** Unique identifier for the target message thread of the forum topic */
|
|
1958
1958
|
message_thread_id: number;
|
|
1959
1959
|
}
|
|
1960
|
-
interface ReopenForumTopicInput
|
|
1960
|
+
export interface ReopenForumTopicInput {
|
|
1961
1961
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1962
1962
|
chat_id: number | string;
|
|
1963
1963
|
/** Unique identifier for the target message thread of the forum topic */
|
|
1964
1964
|
message_thread_id: number;
|
|
1965
1965
|
}
|
|
1966
|
-
interface DeleteForumTopicInput
|
|
1966
|
+
export interface DeleteForumTopicInput {
|
|
1967
1967
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1968
1968
|
chat_id: number | string;
|
|
1969
1969
|
/** Unique identifier for the target message thread of the forum topic */
|
|
1970
1970
|
message_thread_id: number;
|
|
1971
1971
|
}
|
|
1972
|
-
interface UnpinAllForumTopicMessagesInput
|
|
1972
|
+
export interface UnpinAllForumTopicMessagesInput {
|
|
1973
1973
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1974
1974
|
chat_id: number | string;
|
|
1975
1975
|
/** Unique identifier for the target message thread of the forum topic */
|
|
1976
1976
|
message_thread_id: number;
|
|
1977
1977
|
}
|
|
1978
|
-
interface EditGeneralForumTopicInput
|
|
1978
|
+
export interface EditGeneralForumTopicInput {
|
|
1979
1979
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1980
1980
|
chat_id: number | string;
|
|
1981
1981
|
/** New topic name, 1-128 characters */
|
|
1982
1982
|
name: string;
|
|
1983
1983
|
}
|
|
1984
|
-
interface CloseGeneralForumTopicInput
|
|
1984
|
+
export interface CloseGeneralForumTopicInput {
|
|
1985
1985
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1986
1986
|
chat_id: number | string;
|
|
1987
1987
|
}
|
|
1988
|
-
interface ReopenGeneralForumTopicInput
|
|
1988
|
+
export interface ReopenGeneralForumTopicInput {
|
|
1989
1989
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1990
1990
|
chat_id: number | string;
|
|
1991
1991
|
}
|
|
1992
|
-
interface HideGeneralForumTopicInput
|
|
1992
|
+
export interface HideGeneralForumTopicInput {
|
|
1993
1993
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1994
1994
|
chat_id: number | string;
|
|
1995
1995
|
}
|
|
1996
|
-
interface UnhideGeneralForumTopicInput
|
|
1996
|
+
export interface UnhideGeneralForumTopicInput {
|
|
1997
1997
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
1998
1998
|
chat_id: number | string;
|
|
1999
1999
|
}
|
|
2000
|
-
interface UnpinAllGeneralForumTopicMessagesInput
|
|
2000
|
+
export interface UnpinAllGeneralForumTopicMessagesInput {
|
|
2001
2001
|
/** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
|
|
2002
2002
|
chat_id: number | string;
|
|
2003
2003
|
}
|
|
2004
|
-
interface AnswerCallbackQueryInput
|
|
2004
|
+
export interface AnswerCallbackQueryInput {
|
|
2005
2005
|
/** Unique identifier for the query to be answered */
|
|
2006
2006
|
callback_query_id: string;
|
|
2007
2007
|
/**
|
|
@@ -2029,17 +2029,17 @@ interface AnswerCallbackQueryInput extends Record<string, unknown> {
|
|
|
2029
2029
|
*/
|
|
2030
2030
|
cache_time?: number;
|
|
2031
2031
|
}
|
|
2032
|
-
interface GetUserChatBoostsInput
|
|
2032
|
+
export interface GetUserChatBoostsInput {
|
|
2033
2033
|
/** Unique identifier for the chat or username of the channel (in the format @channelusername) */
|
|
2034
2034
|
chat_id: number | string;
|
|
2035
2035
|
/** Unique identifier of the target user */
|
|
2036
2036
|
user_id: number;
|
|
2037
2037
|
}
|
|
2038
|
-
interface GetBusinessConnectionInput
|
|
2038
|
+
export interface GetBusinessConnectionInput {
|
|
2039
2039
|
/** Unique identifier of the business connection */
|
|
2040
2040
|
business_connection_id: string;
|
|
2041
2041
|
}
|
|
2042
|
-
interface SetMyCommandsInput
|
|
2042
|
+
export interface SetMyCommandsInput {
|
|
2043
2043
|
/**
|
|
2044
2044
|
* A JSON-serialized list of bot commands to be set as the list of the bot's commands
|
|
2045
2045
|
* At most 100 commands can be specified
|
|
@@ -2056,7 +2056,7 @@ interface SetMyCommandsInput extends Record<string, unknown> {
|
|
|
2056
2056
|
*/
|
|
2057
2057
|
language_code?: string;
|
|
2058
2058
|
}
|
|
2059
|
-
interface DeleteMyCommandsInput
|
|
2059
|
+
export interface DeleteMyCommandsInput {
|
|
2060
2060
|
/**
|
|
2061
2061
|
* A JSON-serialized object, describing scope of users for which the commands are relevant
|
|
2062
2062
|
* Defaults to BotCommandScopeDefault
|
|
@@ -2068,7 +2068,7 @@ interface DeleteMyCommandsInput extends Record<string, unknown> {
|
|
|
2068
2068
|
*/
|
|
2069
2069
|
language_code?: string;
|
|
2070
2070
|
}
|
|
2071
|
-
interface GetMyCommandsInput
|
|
2071
|
+
export interface GetMyCommandsInput {
|
|
2072
2072
|
/**
|
|
2073
2073
|
* A JSON-serialized object, describing scope of users
|
|
2074
2074
|
* Defaults to BotCommandScopeDefault
|
|
@@ -2077,7 +2077,7 @@ interface GetMyCommandsInput extends Record<string, unknown> {
|
|
|
2077
2077
|
/** A two-letter ISO 639-1 language code or an empty string */
|
|
2078
2078
|
language_code?: string;
|
|
2079
2079
|
}
|
|
2080
|
-
interface SetMyNameInput
|
|
2080
|
+
export interface SetMyNameInput {
|
|
2081
2081
|
/**
|
|
2082
2082
|
* New bot name; 0-64 characters
|
|
2083
2083
|
* Pass an empty string to remove the dedicated name for the given language
|
|
@@ -2089,11 +2089,11 @@ interface SetMyNameInput extends Record<string, unknown> {
|
|
|
2089
2089
|
*/
|
|
2090
2090
|
language_code?: string;
|
|
2091
2091
|
}
|
|
2092
|
-
interface GetMyNameInput
|
|
2092
|
+
export interface GetMyNameInput {
|
|
2093
2093
|
/** A two-letter ISO 639-1 language code or an empty string */
|
|
2094
2094
|
language_code?: string;
|
|
2095
2095
|
}
|
|
2096
|
-
interface SetMyDescriptionInput
|
|
2096
|
+
export interface SetMyDescriptionInput {
|
|
2097
2097
|
/**
|
|
2098
2098
|
* New bot description; 0-512 characters
|
|
2099
2099
|
* Pass an empty string to remove the dedicated description for the given language
|
|
@@ -2105,11 +2105,11 @@ interface SetMyDescriptionInput extends Record<string, unknown> {
|
|
|
2105
2105
|
*/
|
|
2106
2106
|
language_code?: string;
|
|
2107
2107
|
}
|
|
2108
|
-
interface GetMyDescriptionInput
|
|
2108
|
+
export interface GetMyDescriptionInput {
|
|
2109
2109
|
/** A two-letter ISO 639-1 language code or an empty string */
|
|
2110
2110
|
language_code?: string;
|
|
2111
2111
|
}
|
|
2112
|
-
interface SetMyShortDescriptionInput
|
|
2112
|
+
export interface SetMyShortDescriptionInput {
|
|
2113
2113
|
/**
|
|
2114
2114
|
* New short description for the bot; 0-120 characters
|
|
2115
2115
|
* Pass an empty string to remove the dedicated short description for the given language
|
|
@@ -2121,11 +2121,11 @@ interface SetMyShortDescriptionInput extends Record<string, unknown> {
|
|
|
2121
2121
|
*/
|
|
2122
2122
|
language_code?: string;
|
|
2123
2123
|
}
|
|
2124
|
-
interface GetMyShortDescriptionInput
|
|
2124
|
+
export interface GetMyShortDescriptionInput {
|
|
2125
2125
|
/** A two-letter ISO 639-1 language code or an empty string */
|
|
2126
2126
|
language_code?: string;
|
|
2127
2127
|
}
|
|
2128
|
-
interface SetChatMenuButtonInput
|
|
2128
|
+
export interface SetChatMenuButtonInput {
|
|
2129
2129
|
/**
|
|
2130
2130
|
* Unique identifier for the target private chat
|
|
2131
2131
|
* If not specified, default bot's menu button will be changed
|
|
@@ -2137,14 +2137,14 @@ interface SetChatMenuButtonInput extends Record<string, unknown> {
|
|
|
2137
2137
|
*/
|
|
2138
2138
|
menu_button?: T.MenuButton;
|
|
2139
2139
|
}
|
|
2140
|
-
interface GetChatMenuButtonInput
|
|
2140
|
+
export interface GetChatMenuButtonInput {
|
|
2141
2141
|
/**
|
|
2142
2142
|
* Unique identifier for the target private chat
|
|
2143
2143
|
* If not specified, default bot's menu button will be returned
|
|
2144
2144
|
*/
|
|
2145
2145
|
chat_id?: number;
|
|
2146
2146
|
}
|
|
2147
|
-
interface SetMyDefaultAdministratorRightsInput
|
|
2147
|
+
export interface SetMyDefaultAdministratorRightsInput {
|
|
2148
2148
|
/**
|
|
2149
2149
|
* A JSON-serialized object describing new default administrator rights
|
|
2150
2150
|
* If not specified, the default administrator rights will be cleared
|
|
@@ -2156,14 +2156,14 @@ interface SetMyDefaultAdministratorRightsInput extends Record<string, unknown> {
|
|
|
2156
2156
|
*/
|
|
2157
2157
|
for_channels?: boolean;
|
|
2158
2158
|
}
|
|
2159
|
-
interface GetMyDefaultAdministratorRightsInput
|
|
2159
|
+
export interface GetMyDefaultAdministratorRightsInput {
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Pass True to get default administrator rights of the bot in channels
|
|
2162
2162
|
* Otherwise, default administrator rights of the bot for groups and supergroups will be returned
|
|
2163
2163
|
*/
|
|
2164
2164
|
for_channels?: boolean;
|
|
2165
2165
|
}
|
|
2166
|
-
interface EditMessageTextInput
|
|
2166
|
+
export interface EditMessageTextInput {
|
|
2167
2167
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2168
2168
|
business_connection_id?: string;
|
|
2169
2169
|
/**
|
|
@@ -2195,7 +2195,7 @@ interface EditMessageTextInput extends Record<string, unknown> {
|
|
|
2195
2195
|
/** A JSON-serialized object for an inline keyboard */
|
|
2196
2196
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2197
2197
|
}
|
|
2198
|
-
interface EditMessageCaptionInput
|
|
2198
|
+
export interface EditMessageCaptionInput {
|
|
2199
2199
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2200
2200
|
business_connection_id?: string;
|
|
2201
2201
|
/**
|
|
@@ -2230,7 +2230,7 @@ interface EditMessageCaptionInput extends Record<string, unknown> {
|
|
|
2230
2230
|
/** A JSON-serialized object for an inline keyboard */
|
|
2231
2231
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2232
2232
|
}
|
|
2233
|
-
interface EditMessageMediaInput
|
|
2233
|
+
export interface EditMessageMediaInput {
|
|
2234
2234
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2235
2235
|
business_connection_id?: string;
|
|
2236
2236
|
/**
|
|
@@ -2253,7 +2253,7 @@ interface EditMessageMediaInput extends Record<string, unknown> {
|
|
|
2253
2253
|
/** A JSON-serialized object for a new inline keyboard */
|
|
2254
2254
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2255
2255
|
}
|
|
2256
|
-
interface EditMessageLiveLocationInput
|
|
2256
|
+
export interface EditMessageLiveLocationInput {
|
|
2257
2257
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2258
2258
|
business_connection_id?: string;
|
|
2259
2259
|
/**
|
|
@@ -2297,7 +2297,7 @@ interface EditMessageLiveLocationInput extends Record<string, unknown> {
|
|
|
2297
2297
|
/** A JSON-serialized object for a new inline keyboard */
|
|
2298
2298
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2299
2299
|
}
|
|
2300
|
-
interface StopMessageLiveLocationInput
|
|
2300
|
+
export interface StopMessageLiveLocationInput {
|
|
2301
2301
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2302
2302
|
business_connection_id?: string;
|
|
2303
2303
|
/**
|
|
@@ -2318,7 +2318,7 @@ interface StopMessageLiveLocationInput extends Record<string, unknown> {
|
|
|
2318
2318
|
/** A JSON-serialized object for a new inline keyboard */
|
|
2319
2319
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2320
2320
|
}
|
|
2321
|
-
interface EditMessageReplyMarkupInput
|
|
2321
|
+
export interface EditMessageReplyMarkupInput {
|
|
2322
2322
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2323
2323
|
business_connection_id?: string;
|
|
2324
2324
|
/**
|
|
@@ -2339,7 +2339,7 @@ interface EditMessageReplyMarkupInput extends Record<string, unknown> {
|
|
|
2339
2339
|
/** A JSON-serialized object for an inline keyboard */
|
|
2340
2340
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2341
2341
|
}
|
|
2342
|
-
interface StopPollInput
|
|
2342
|
+
export interface StopPollInput {
|
|
2343
2343
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
2344
2344
|
business_connection_id?: string;
|
|
2345
2345
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -2349,13 +2349,13 @@ interface StopPollInput extends Record<string, unknown> {
|
|
|
2349
2349
|
/** A JSON-serialized object for a new message inline keyboard */
|
|
2350
2350
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2351
2351
|
}
|
|
2352
|
-
interface DeleteMessageInput
|
|
2352
|
+
export interface DeleteMessageInput {
|
|
2353
2353
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
2354
2354
|
chat_id: number | string;
|
|
2355
2355
|
/** Identifier of the message to delete */
|
|
2356
2356
|
message_id: number;
|
|
2357
2357
|
}
|
|
2358
|
-
interface DeleteMessagesInput
|
|
2358
|
+
export interface DeleteMessagesInput {
|
|
2359
2359
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
2360
2360
|
chat_id: number | string;
|
|
2361
2361
|
/**
|
|
@@ -2364,7 +2364,7 @@ interface DeleteMessagesInput extends Record<string, unknown> {
|
|
|
2364
2364
|
*/
|
|
2365
2365
|
message_ids: number[];
|
|
2366
2366
|
}
|
|
2367
|
-
interface SendStickerInput
|
|
2367
|
+
export interface SendStickerInput {
|
|
2368
2368
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
2369
2369
|
business_connection_id?: string;
|
|
2370
2370
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
@@ -2407,18 +2407,18 @@ interface SendStickerInput extends Record<string, unknown> {
|
|
|
2407
2407
|
*/
|
|
2408
2408
|
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
2409
2409
|
}
|
|
2410
|
-
interface GetStickerSetInput
|
|
2410
|
+
export interface GetStickerSetInput {
|
|
2411
2411
|
/** Name of the sticker set */
|
|
2412
2412
|
name: string;
|
|
2413
2413
|
}
|
|
2414
|
-
interface GetCustomEmojiStickersInput
|
|
2414
|
+
export interface GetCustomEmojiStickersInput {
|
|
2415
2415
|
/**
|
|
2416
2416
|
* A JSON-serialized list of custom emoji identifiers
|
|
2417
2417
|
* At most 200 custom emoji identifiers can be specified
|
|
2418
2418
|
*/
|
|
2419
2419
|
custom_emoji_ids: string[];
|
|
2420
2420
|
}
|
|
2421
|
-
interface UploadStickerFileInput
|
|
2421
|
+
export interface UploadStickerFileInput {
|
|
2422
2422
|
/** User identifier of sticker file owner */
|
|
2423
2423
|
user_id: number;
|
|
2424
2424
|
/**
|
|
@@ -2436,7 +2436,7 @@ interface UploadStickerFileInput extends Record<string, unknown> {
|
|
|
2436
2436
|
/** Format of the sticker, must be one of “static”, “animated”, “video” */
|
|
2437
2437
|
sticker_format: string;
|
|
2438
2438
|
}
|
|
2439
|
-
interface CreateNewStickerSetInput
|
|
2439
|
+
export interface CreateNewStickerSetInput {
|
|
2440
2440
|
/** User identifier of created sticker set owner */
|
|
2441
2441
|
user_id: number;
|
|
2442
2442
|
/**
|
|
@@ -2462,7 +2462,7 @@ interface CreateNewStickerSetInput extends Record<string, unknown> {
|
|
|
2462
2462
|
/** Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only */
|
|
2463
2463
|
needs_repainting?: boolean;
|
|
2464
2464
|
}
|
|
2465
|
-
interface AddStickerToSetInput
|
|
2465
|
+
export interface AddStickerToSetInput {
|
|
2466
2466
|
/** User identifier of sticker set owner */
|
|
2467
2467
|
user_id: number;
|
|
2468
2468
|
/** Sticker set name */
|
|
@@ -2473,17 +2473,17 @@ interface AddStickerToSetInput extends Record<string, unknown> {
|
|
|
2473
2473
|
*/
|
|
2474
2474
|
sticker: T.InputSticker;
|
|
2475
2475
|
}
|
|
2476
|
-
interface SetStickerPositionInSetInput
|
|
2476
|
+
export interface SetStickerPositionInSetInput {
|
|
2477
2477
|
/** File identifier of the sticker */
|
|
2478
2478
|
sticker: string;
|
|
2479
2479
|
/** New sticker position in the set, zero-based */
|
|
2480
2480
|
position: number;
|
|
2481
2481
|
}
|
|
2482
|
-
interface DeleteStickerFromSetInput
|
|
2482
|
+
export interface DeleteStickerFromSetInput {
|
|
2483
2483
|
/** File identifier of the sticker */
|
|
2484
2484
|
sticker: string;
|
|
2485
2485
|
}
|
|
2486
|
-
interface ReplaceStickerInSetInput
|
|
2486
|
+
export interface ReplaceStickerInSetInput {
|
|
2487
2487
|
/** User identifier of the sticker set owner */
|
|
2488
2488
|
user_id: number;
|
|
2489
2489
|
/** Sticker set name */
|
|
@@ -2496,19 +2496,19 @@ interface ReplaceStickerInSetInput extends Record<string, unknown> {
|
|
|
2496
2496
|
*/
|
|
2497
2497
|
sticker: T.InputSticker;
|
|
2498
2498
|
}
|
|
2499
|
-
interface SetStickerEmojiListInput
|
|
2499
|
+
export interface SetStickerEmojiListInput {
|
|
2500
2500
|
/** File identifier of the sticker */
|
|
2501
2501
|
sticker: string;
|
|
2502
2502
|
/** A JSON-serialized list of 1-20 emoji associated with the sticker */
|
|
2503
2503
|
emoji_list: string[];
|
|
2504
2504
|
}
|
|
2505
|
-
interface SetStickerKeywordsInput
|
|
2505
|
+
export interface SetStickerKeywordsInput {
|
|
2506
2506
|
/** File identifier of the sticker */
|
|
2507
2507
|
sticker: string;
|
|
2508
2508
|
/** A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters */
|
|
2509
2509
|
keywords?: string[];
|
|
2510
2510
|
}
|
|
2511
|
-
interface SetStickerMaskPositionInput
|
|
2511
|
+
export interface SetStickerMaskPositionInput {
|
|
2512
2512
|
/** File identifier of the sticker */
|
|
2513
2513
|
sticker: string;
|
|
2514
2514
|
/**
|
|
@@ -2517,13 +2517,13 @@ interface SetStickerMaskPositionInput extends Record<string, unknown> {
|
|
|
2517
2517
|
*/
|
|
2518
2518
|
mask_position?: T.MaskPosition;
|
|
2519
2519
|
}
|
|
2520
|
-
interface SetStickerSetTitleInput
|
|
2520
|
+
export interface SetStickerSetTitleInput {
|
|
2521
2521
|
/** Sticker set name */
|
|
2522
2522
|
name: string;
|
|
2523
2523
|
/** Sticker set title, 1-64 characters */
|
|
2524
2524
|
title: string;
|
|
2525
2525
|
}
|
|
2526
|
-
interface SetStickerSetThumbnailInput
|
|
2526
|
+
export interface SetStickerSetThumbnailInput {
|
|
2527
2527
|
/** Sticker set name */
|
|
2528
2528
|
name: string;
|
|
2529
2529
|
/** User identifier of the sticker set owner */
|
|
@@ -2551,19 +2551,19 @@ interface SetStickerSetThumbnailInput extends Record<string, unknown> {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
format: string;
|
|
2553
2553
|
}
|
|
2554
|
-
interface SetCustomEmojiStickerSetThumbnailInput
|
|
2554
|
+
export interface SetCustomEmojiStickerSetThumbnailInput {
|
|
2555
2555
|
/** Sticker set name */
|
|
2556
2556
|
name: string;
|
|
2557
2557
|
/** Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail */
|
|
2558
2558
|
custom_emoji_id?: string;
|
|
2559
2559
|
}
|
|
2560
|
-
interface DeleteStickerSetInput
|
|
2560
|
+
export interface DeleteStickerSetInput {
|
|
2561
2561
|
/** Sticker set name */
|
|
2562
2562
|
name: string;
|
|
2563
2563
|
}
|
|
2564
|
-
interface GetAvailableGiftsInput
|
|
2564
|
+
export interface GetAvailableGiftsInput {
|
|
2565
2565
|
}
|
|
2566
|
-
interface SendGiftInput
|
|
2566
|
+
export interface SendGiftInput {
|
|
2567
2567
|
/** Unique identifier of the target user that will receive the gift */
|
|
2568
2568
|
user_id: number;
|
|
2569
2569
|
/** Identifier of the gift */
|
|
@@ -2583,7 +2583,7 @@ interface SendGiftInput extends Record<string, unknown> {
|
|
|
2583
2583
|
*/
|
|
2584
2584
|
text_entities?: T.MessageEntity[];
|
|
2585
2585
|
}
|
|
2586
|
-
interface AnswerInlineQueryInput
|
|
2586
|
+
export interface AnswerInlineQueryInput {
|
|
2587
2587
|
/** Unique identifier for the answered query */
|
|
2588
2588
|
inline_query_id: string;
|
|
2589
2589
|
/** A JSON-serialized array of results for the inline query */
|
|
@@ -2607,13 +2607,13 @@ interface AnswerInlineQueryInput extends Record<string, unknown> {
|
|
|
2607
2607
|
/** A JSON-serialized object describing a button to be shown above inline query results */
|
|
2608
2608
|
button?: T.InlineQueryResultsButton;
|
|
2609
2609
|
}
|
|
2610
|
-
interface AnswerWebAppQueryInput
|
|
2610
|
+
export interface AnswerWebAppQueryInput {
|
|
2611
2611
|
/** Unique identifier for the query to be answered */
|
|
2612
2612
|
web_app_query_id: string;
|
|
2613
2613
|
/** A JSON-serialized object describing the message to be sent */
|
|
2614
2614
|
result: T.InlineQueryResult;
|
|
2615
2615
|
}
|
|
2616
|
-
interface SavePreparedInlineMessageInput
|
|
2616
|
+
export interface SavePreparedInlineMessageInput {
|
|
2617
2617
|
/** Unique identifier of the target user that can use the prepared message */
|
|
2618
2618
|
user_id: number;
|
|
2619
2619
|
/** A JSON-serialized object describing the message to be sent */
|
|
@@ -2627,7 +2627,7 @@ interface SavePreparedInlineMessageInput extends Record<string, unknown> {
|
|
|
2627
2627
|
/** Pass True if the message can be sent to channel chats */
|
|
2628
2628
|
allow_channel_chats?: boolean;
|
|
2629
2629
|
}
|
|
2630
|
-
interface SendInvoiceInput
|
|
2630
|
+
export interface SendInvoiceInput {
|
|
2631
2631
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
2632
2632
|
chat_id: number | string;
|
|
2633
2633
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
@@ -2756,7 +2756,7 @@ interface SendInvoiceInput extends Record<string, unknown> {
|
|
|
2756
2756
|
*/
|
|
2757
2757
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2758
2758
|
}
|
|
2759
|
-
interface CreateInvoiceLinkInput
|
|
2759
|
+
export interface CreateInvoiceLinkInput {
|
|
2760
2760
|
/**
|
|
2761
2761
|
* Unique identifier of the business connection on behalf of which the link will be created
|
|
2762
2762
|
* For payments in Telegram Stars only
|
|
@@ -2864,7 +2864,7 @@ interface CreateInvoiceLinkInput extends Record<string, unknown> {
|
|
|
2864
2864
|
*/
|
|
2865
2865
|
is_flexible?: boolean;
|
|
2866
2866
|
}
|
|
2867
|
-
interface AnswerShippingQueryInput
|
|
2867
|
+
export interface AnswerShippingQueryInput {
|
|
2868
2868
|
/** Unique identifier for the query to be answered */
|
|
2869
2869
|
shipping_query_id: string;
|
|
2870
2870
|
/** Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible) */
|
|
@@ -2883,7 +2883,7 @@ interface AnswerShippingQueryInput extends Record<string, unknown> {
|
|
|
2883
2883
|
*/
|
|
2884
2884
|
error_message?: string;
|
|
2885
2885
|
}
|
|
2886
|
-
interface AnswerPreCheckoutQueryInput
|
|
2886
|
+
export interface AnswerPreCheckoutQueryInput {
|
|
2887
2887
|
/** Unique identifier for the query to be answered */
|
|
2888
2888
|
pre_checkout_query_id: string;
|
|
2889
2889
|
/**
|
|
@@ -2902,7 +2902,7 @@ interface AnswerPreCheckoutQueryInput extends Record<string, unknown> {
|
|
|
2902
2902
|
*/
|
|
2903
2903
|
error_message?: string;
|
|
2904
2904
|
}
|
|
2905
|
-
interface GetStarTransactionsInput
|
|
2905
|
+
export interface GetStarTransactionsInput {
|
|
2906
2906
|
/** Number of transactions to skip in the response */
|
|
2907
2907
|
offset?: number;
|
|
2908
2908
|
/**
|
|
@@ -2912,13 +2912,13 @@ interface GetStarTransactionsInput extends Record<string, unknown> {
|
|
|
2912
2912
|
*/
|
|
2913
2913
|
limit?: number;
|
|
2914
2914
|
}
|
|
2915
|
-
interface RefundStarPaymentInput
|
|
2915
|
+
export interface RefundStarPaymentInput {
|
|
2916
2916
|
/** Identifier of the user whose payment will be refunded */
|
|
2917
2917
|
user_id: number;
|
|
2918
2918
|
/** Telegram payment identifier */
|
|
2919
2919
|
telegram_payment_charge_id: string;
|
|
2920
2920
|
}
|
|
2921
|
-
interface EditUserStarSubscriptionInput
|
|
2921
|
+
export interface EditUserStarSubscriptionInput {
|
|
2922
2922
|
/** Identifier of the user whose subscription will be edited */
|
|
2923
2923
|
user_id: number;
|
|
2924
2924
|
/** Telegram payment identifier for the subscription */
|
|
@@ -2929,13 +2929,13 @@ interface EditUserStarSubscriptionInput extends Record<string, unknown> {
|
|
|
2929
2929
|
*/
|
|
2930
2930
|
is_canceled: boolean;
|
|
2931
2931
|
}
|
|
2932
|
-
interface SetPassportDataErrorsInput
|
|
2932
|
+
export interface SetPassportDataErrorsInput {
|
|
2933
2933
|
/** User identifier */
|
|
2934
2934
|
user_id: number;
|
|
2935
2935
|
/** A JSON-serialized array describing the errors */
|
|
2936
2936
|
errors: T.PassportElementError[];
|
|
2937
2937
|
}
|
|
2938
|
-
interface SendGameInput
|
|
2938
|
+
export interface SendGameInput {
|
|
2939
2939
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
2940
2940
|
business_connection_id?: string;
|
|
2941
2941
|
/** Unique identifier for the target chat */
|
|
@@ -2971,7 +2971,7 @@ interface SendGameInput extends Record<string, unknown> {
|
|
|
2971
2971
|
*/
|
|
2972
2972
|
reply_markup?: T.InlineKeyboardMarkup;
|
|
2973
2973
|
}
|
|
2974
|
-
interface SetGameScoreInput
|
|
2974
|
+
export interface SetGameScoreInput {
|
|
2975
2975
|
/** User identifier */
|
|
2976
2976
|
user_id: number;
|
|
2977
2977
|
/** New score, must be non-negative */
|
|
@@ -2999,7 +2999,7 @@ interface SetGameScoreInput extends Record<string, unknown> {
|
|
|
2999
2999
|
*/
|
|
3000
3000
|
inline_message_id?: string;
|
|
3001
3001
|
}
|
|
3002
|
-
interface GetGameHighScoresInput
|
|
3002
|
+
export interface GetGameHighScoresInput {
|
|
3003
3003
|
/** Target user id */
|
|
3004
3004
|
user_id: number;
|
|
3005
3005
|
/**
|
|
@@ -3018,4 +3018,3 @@ interface GetGameHighScoresInput extends Record<string, unknown> {
|
|
|
3018
3018
|
*/
|
|
3019
3019
|
inline_message_id?: string;
|
|
3020
3020
|
}
|
|
3021
|
-
export {};
|