From 6077f9ba103cb969753199f5a4fc92c78eef902c Mon Sep 17 00:00:00 2001 From: agoudbg <55237525+agoudbg@users.noreply.github.com> Date: Tue, 31 Jan 2023 08:17:55 +0800 Subject: [PATCH] docs: update api.md for createNewStickerSet (#1043) * fix: createNewStickerSet description error * docs: Update api.md --- doc/api.md | 2 +- src/telegram.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api.md b/doc/api.md index 5718653..f309e1e 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1870,7 +1870,7 @@ You must use exactly one of the fields *png_sticker*, *tgs_sticker*, or *webm_st | Param | Type | Description | | --- | --- | --- | | userId | Number | User identifier of created sticker set owner | -| name | String | 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. | +| name | String | 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_"`. `` is case insensitive. 1-64 characters. | | title | String | Sticker set title, 1-64 characters | | pngSticker | String \| stream.Stream \| Buffer | 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. | | emojis | String | One or more emoji corresponding to the sticker | diff --git a/src/telegram.js b/src/telegram.js index 51f11be..7b9440a 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -2432,7 +2432,8 @@ class TelegramBot extends EventEmitter { * * @param {Number} userId User identifier of created sticker set owner * @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. - * Must begin with a letter, can't contain consecutive underscores and must end in `.` is case insensitive. 1-64 characters. + * Must begin with a letter, can't contain consecutive underscores and must end in `"_by_"`. `` is case insensitive. 1-64 characters. + * @param {String} title Sticker set title, 1-64 characters * @param {String|stream.Stream|Buffer} pngSticker 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.