@grom.js/bot-api-spec 0.4.0 → 0.5.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,175 @@
1
+ /**
2
+ * This module contains all methods specified in the Bot API.
3
+ *
4
+ * @module
5
+ */
6
+ import type { ApiMethod } from './format.ts';
7
+ /**
8
+ * Definition of all Bot API methods as an object.
9
+ * Properties are created in the same order as they appear in the docs.
10
+ */
11
+ export declare const methods: {
12
+ getUpdates: ApiMethod;
13
+ setWebhook: ApiMethod;
14
+ deleteWebhook: ApiMethod;
15
+ getWebhookInfo: ApiMethod;
16
+ getMe: ApiMethod;
17
+ logOut: ApiMethod;
18
+ close: ApiMethod;
19
+ sendMessage: ApiMethod;
20
+ forwardMessage: ApiMethod;
21
+ forwardMessages: ApiMethod;
22
+ copyMessage: ApiMethod;
23
+ copyMessages: ApiMethod;
24
+ sendPhoto: ApiMethod;
25
+ sendAudio: ApiMethod;
26
+ sendDocument: ApiMethod;
27
+ sendVideo: ApiMethod;
28
+ sendAnimation: ApiMethod;
29
+ sendVoice: ApiMethod;
30
+ sendVideoNote: ApiMethod;
31
+ sendPaidMedia: ApiMethod;
32
+ sendMediaGroup: ApiMethod;
33
+ sendLocation: ApiMethod;
34
+ sendVenue: ApiMethod;
35
+ sendContact: ApiMethod;
36
+ sendPoll: ApiMethod;
37
+ sendChecklist: ApiMethod;
38
+ sendDice: ApiMethod;
39
+ sendMessageDraft: ApiMethod;
40
+ sendChatAction: ApiMethod;
41
+ setMessageReaction: ApiMethod;
42
+ getUserProfilePhotos: ApiMethod;
43
+ setUserEmojiStatus: ApiMethod;
44
+ getFile: ApiMethod;
45
+ banChatMember: ApiMethod;
46
+ unbanChatMember: ApiMethod;
47
+ restrictChatMember: ApiMethod;
48
+ promoteChatMember: ApiMethod;
49
+ setChatAdministratorCustomTitle: ApiMethod;
50
+ banChatSenderChat: ApiMethod;
51
+ unbanChatSenderChat: ApiMethod;
52
+ setChatPermissions: ApiMethod;
53
+ exportChatInviteLink: ApiMethod;
54
+ createChatInviteLink: ApiMethod;
55
+ editChatInviteLink: ApiMethod;
56
+ createChatSubscriptionInviteLink: ApiMethod;
57
+ editChatSubscriptionInviteLink: ApiMethod;
58
+ revokeChatInviteLink: ApiMethod;
59
+ approveChatJoinRequest: ApiMethod;
60
+ declineChatJoinRequest: ApiMethod;
61
+ setChatPhoto: ApiMethod;
62
+ deleteChatPhoto: ApiMethod;
63
+ setChatTitle: ApiMethod;
64
+ setChatDescription: ApiMethod;
65
+ pinChatMessage: ApiMethod;
66
+ unpinChatMessage: ApiMethod;
67
+ unpinAllChatMessages: ApiMethod;
68
+ leaveChat: ApiMethod;
69
+ getChat: ApiMethod;
70
+ getChatAdministrators: ApiMethod;
71
+ getChatMemberCount: ApiMethod;
72
+ getChatMember: ApiMethod;
73
+ setChatStickerSet: ApiMethod;
74
+ deleteChatStickerSet: ApiMethod;
75
+ getForumTopicIconStickers: ApiMethod;
76
+ createForumTopic: ApiMethod;
77
+ editForumTopic: ApiMethod;
78
+ closeForumTopic: ApiMethod;
79
+ reopenForumTopic: ApiMethod;
80
+ deleteForumTopic: ApiMethod;
81
+ unpinAllForumTopicMessages: ApiMethod;
82
+ editGeneralForumTopic: ApiMethod;
83
+ closeGeneralForumTopic: ApiMethod;
84
+ reopenGeneralForumTopic: ApiMethod;
85
+ hideGeneralForumTopic: ApiMethod;
86
+ unhideGeneralForumTopic: ApiMethod;
87
+ unpinAllGeneralForumTopicMessages: ApiMethod;
88
+ answerCallbackQuery: ApiMethod;
89
+ getUserChatBoosts: ApiMethod;
90
+ getBusinessConnection: ApiMethod;
91
+ setMyCommands: ApiMethod;
92
+ deleteMyCommands: ApiMethod;
93
+ getMyCommands: ApiMethod;
94
+ setMyName: ApiMethod;
95
+ getMyName: ApiMethod;
96
+ setMyDescription: ApiMethod;
97
+ getMyDescription: ApiMethod;
98
+ setMyShortDescription: ApiMethod;
99
+ getMyShortDescription: ApiMethod;
100
+ setChatMenuButton: ApiMethod;
101
+ getChatMenuButton: ApiMethod;
102
+ setMyDefaultAdministratorRights: ApiMethod;
103
+ getMyDefaultAdministratorRights: ApiMethod;
104
+ getAvailableGifts: ApiMethod;
105
+ sendGift: ApiMethod;
106
+ giftPremiumSubscription: ApiMethod;
107
+ verifyUser: ApiMethod;
108
+ verifyChat: ApiMethod;
109
+ removeUserVerification: ApiMethod;
110
+ removeChatVerification: ApiMethod;
111
+ readBusinessMessage: ApiMethod;
112
+ deleteBusinessMessages: ApiMethod;
113
+ setBusinessAccountName: ApiMethod;
114
+ setBusinessAccountUsername: ApiMethod;
115
+ setBusinessAccountBio: ApiMethod;
116
+ setBusinessAccountProfilePhoto: ApiMethod;
117
+ removeBusinessAccountProfilePhoto: ApiMethod;
118
+ setBusinessAccountGiftSettings: ApiMethod;
119
+ getBusinessAccountStarBalance: ApiMethod;
120
+ transferBusinessAccountStars: ApiMethod;
121
+ getBusinessAccountGifts: ApiMethod;
122
+ getUserGifts: ApiMethod;
123
+ getChatGifts: ApiMethod;
124
+ convertGiftToStars: ApiMethod;
125
+ upgradeGift: ApiMethod;
126
+ transferGift: ApiMethod;
127
+ postStory: ApiMethod;
128
+ repostStory: ApiMethod;
129
+ editStory: ApiMethod;
130
+ deleteStory: ApiMethod;
131
+ editMessageText: ApiMethod;
132
+ editMessageCaption: ApiMethod;
133
+ editMessageMedia: ApiMethod;
134
+ editMessageLiveLocation: ApiMethod;
135
+ stopMessageLiveLocation: ApiMethod;
136
+ editMessageChecklist: ApiMethod;
137
+ editMessageReplyMarkup: ApiMethod;
138
+ stopPoll: ApiMethod;
139
+ approveSuggestedPost: ApiMethod;
140
+ declineSuggestedPost: ApiMethod;
141
+ deleteMessage: ApiMethod;
142
+ deleteMessages: ApiMethod;
143
+ sendSticker: ApiMethod;
144
+ getStickerSet: ApiMethod;
145
+ getCustomEmojiStickers: ApiMethod;
146
+ uploadStickerFile: ApiMethod;
147
+ createNewStickerSet: ApiMethod;
148
+ addStickerToSet: ApiMethod;
149
+ setStickerPositionInSet: ApiMethod;
150
+ deleteStickerFromSet: ApiMethod;
151
+ replaceStickerInSet: ApiMethod;
152
+ setStickerEmojiList: ApiMethod;
153
+ setStickerKeywords: ApiMethod;
154
+ setStickerMaskPosition: ApiMethod;
155
+ setStickerSetTitle: ApiMethod;
156
+ setStickerSetThumbnail: ApiMethod;
157
+ setCustomEmojiStickerSetThumbnail: ApiMethod;
158
+ deleteStickerSet: ApiMethod;
159
+ answerInlineQuery: ApiMethod;
160
+ answerWebAppQuery: ApiMethod;
161
+ savePreparedInlineMessage: ApiMethod;
162
+ sendInvoice: ApiMethod;
163
+ createInvoiceLink: ApiMethod;
164
+ answerShippingQuery: ApiMethod;
165
+ answerPreCheckoutQuery: ApiMethod;
166
+ getMyStarBalance: ApiMethod;
167
+ getStarTransactions: ApiMethod;
168
+ refundStarPayment: ApiMethod;
169
+ editUserStarSubscription: ApiMethod;
170
+ setPassportDataErrors: ApiMethod;
171
+ sendGame: ApiMethod;
172
+ setGameScore: ApiMethod;
173
+ getGameHighScores: ApiMethod;
174
+ };
175
+ //# sourceMappingURL=methods.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods.gen.d.ts","sourceRoot":"","sources":["../src/methods.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAklY5C;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKnB,CAAA"}