@grom.js/bot-api-spec 0.7.1 → 0.8.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![bot-api](https://img.shields.io/badge/v9.4-000?style=flat&logo=telegram&logoColor=%2325A3E1&label=Bot%20API&labelColor=%23000&color=%2325A3E1)][bot-api]
1
+ [![bot-api](https://img.shields.io/badge/v9.5-000?style=flat&logo=telegram&logoColor=%2325A3E1&label=Bot%20API&labelColor=%23000&color=%2325A3E1)][bot-api]
2
2
  [![npm](https://img.shields.io/npm/v/%40grom.js%2Fbot-api-spec?style=flat&logo=npm&logoColor=%23BB443E&logoSize=auto&label=Latest&labelColor=%23fff&color=%23BB443E)](https://www.npmjs.com/package/@grom.js/bot-api-spec)
3
3
  [![jsr](https://img.shields.io/jsr/v/%40grom/bot-api-spec?style=flat&logo=jsr&logoColor=%231B3646&logoSize=auto&label=Latest&labelColor=%23F3E051&color=%231B3646)](https://jsr.io/@grom/bot-api-spec)
4
4
 
@@ -50,6 +50,7 @@ export declare const methods: {
50
50
  restrictChatMember: ApiMethod;
51
51
  promoteChatMember: ApiMethod;
52
52
  setChatAdministratorCustomTitle: ApiMethod;
53
+ setChatMemberTag: ApiMethod;
53
54
  banChatSenderChat: ApiMethod;
54
55
  unbanChatSenderChat: ApiMethod;
55
56
  setChatPermissions: ApiMethod;
@@ -1 +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;AA+0X5C;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKnB,CAAA"}
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;AA44X5C;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuKnB,CAAA"}
@@ -4197,7 +4197,7 @@ const sendChecklist = {
4197
4197
  name: 'InlineKeyboardMarkup',
4198
4198
  },
4199
4199
  description: {
4200
- markdown: 'An object for an inline keyboard',
4200
+ markdown: 'An object for an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards)',
4201
4201
  },
4202
4202
  required: false,
4203
4203
  },
@@ -4396,7 +4396,7 @@ const sendDice = {
4396
4396
  const sendMessageDraft = {
4397
4397
  name: 'sendMessageDraft',
4398
4398
  description: {
4399
- markdown: 'Use this method to stream a partial message to a user while the message is being generated; supported only for bots with forum topic mode enabled. Returns _True_ on success.',
4399
+ markdown: 'Use this method to stream a partial message to a user while the message is being generated. Returns _True_ on success.',
4400
4400
  },
4401
4401
  parameters: [
4402
4402
  {
@@ -5176,6 +5176,16 @@ const promoteChatMember = {
5176
5176
  },
5177
5177
  required: false,
5178
5178
  },
5179
+ {
5180
+ name: 'can_manage_tags',
5181
+ type: {
5182
+ type: 'bool',
5183
+ },
5184
+ description: {
5185
+ markdown: 'Pass _True_ if the administrator can edit the tags of regular members; for groups and supergroups only',
5186
+ },
5187
+ required: false,
5188
+ },
5179
5189
  ],
5180
5190
  returnType: {
5181
5191
  type: 'bool',
@@ -5232,6 +5242,56 @@ const setChatAdministratorCustomTitle = {
5232
5242
  literal: true,
5233
5243
  },
5234
5244
  };
5245
+ const setChatMemberTag = {
5246
+ name: 'setChatMemberTag',
5247
+ description: {
5248
+ markdown: 'Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an administrator in the chat for this to work and must have the _can\\_manage\\_tags_ administrator right. Returns _True_ on success.',
5249
+ },
5250
+ parameters: [
5251
+ {
5252
+ name: 'chat_id',
5253
+ type: {
5254
+ type: 'union',
5255
+ types: [
5256
+ {
5257
+ type: 'int32',
5258
+ },
5259
+ {
5260
+ type: 'str',
5261
+ },
5262
+ ],
5263
+ },
5264
+ description: {
5265
+ markdown: 'Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`)',
5266
+ },
5267
+ required: true,
5268
+ },
5269
+ {
5270
+ name: 'user_id',
5271
+ type: {
5272
+ type: 'int32',
5273
+ },
5274
+ description: {
5275
+ markdown: 'Unique identifier of the target user',
5276
+ },
5277
+ required: true,
5278
+ },
5279
+ {
5280
+ name: 'tag',
5281
+ type: {
5282
+ type: 'str',
5283
+ },
5284
+ description: {
5285
+ markdown: 'New tag for the member; 0-16 characters, emoji are not allowed',
5286
+ },
5287
+ required: false,
5288
+ },
5289
+ ],
5290
+ returnType: {
5291
+ type: 'bool',
5292
+ literal: true,
5293
+ },
5294
+ };
5235
5295
  const banChatSenderChat = {
5236
5296
  name: 'banChatSenderChat',
5237
5297
  description: {
@@ -9569,7 +9629,7 @@ const editMessageChecklist = {
9569
9629
  name: 'InlineKeyboardMarkup',
9570
9630
  },
9571
9631
  description: {
9572
- markdown: 'An object for the new inline keyboard for the message',
9632
+ markdown: 'An object for the new [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) for the message',
9573
9633
  },
9574
9634
  required: false,
9575
9635
  },
@@ -11993,6 +12053,7 @@ export const methods = {
11993
12053
  restrictChatMember,
11994
12054
  promoteChatMember,
11995
12055
  setChatAdministratorCustomTitle,
12056
+ setChatMemberTag,
11996
12057
  banChatSenderChat,
11997
12058
  unbanChatSenderChat,
11998
12059
  setChatPermissions,