Skip to content

Commit 6077f9b

Browse files
authored
docs: update api.md for createNewStickerSet (yagop#1043)
* fix: createNewStickerSet description error * docs: Update api.md
1 parent 41f493b commit 6077f9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ You must use exactly one of the fields *png_sticker*, *tgs_sticker*, or *webm_st
18701870
| Param | Type | Description |
18711871
| --- | --- | --- |
18721872
| userId | <code>Number</code> | User identifier of created sticker set owner |
1873-
| name | <code>String</code> | Short name of sticker set, to be used in `t.me/addstickers/` URLs (e.g., *"animals"*). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in `.` is case insensitive. 1-64 characters. |
1873+
| name | <code>String</code> | Short name of sticker set, to be used in `t.me/addstickers/` URLs (e.g., *"animals"*). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in `"_by_<bot_username>"`. `<bot_username>` is case insensitive. 1-64 characters. |
18741874
| title | <code>String</code> | Sticker set title, 1-64 characters |
18751875
| pngSticker | <code>String</code> \| <code>stream.Stream</code> \| <code>Buffer</code> | Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. |
18761876
| emojis | <code>String</code> | One or more emoji corresponding to the sticker |

src/telegram.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,8 @@ class TelegramBot extends EventEmitter {
24322432
*
24332433
* @param {Number} userId User identifier of created sticker set owner
24342434
* @param {String} name Short name of sticker set, to be used in `t.me/addstickers/` URLs (e.g., *"animals"*). Can contain only english letters, digits and underscores.
2435-
* Must begin with a letter, can't contain consecutive underscores and must end in `.` is case insensitive. 1-64 characters.
2435+
* Must begin with a letter, can't contain consecutive underscores and must end in `"_by_<bot_username>"`. `<bot_username>` is case insensitive. 1-64 characters.
2436+
24362437
* @param {String} title Sticker set title, 1-64 characters
24372438
* @param {String|stream.Stream|Buffer} pngSticker Png image with the sticker, must be up to 512 kilobytes in size,
24382439
* dimensions must not exceed 512px, and either width or height must be exactly 512px.

0 commit comments

Comments
 (0)