@@ -103,6 +103,8 @@ TelegramBot
103
103
* [ .setMyCommands(commands, [ options] )] ( #TelegramBot+setMyCommands ) ⇒ <code >Promise</code >
104
104
* [ .deleteMyCommands([ options] )] ( #TelegramBot+deleteMyCommands ) ⇒ <code >Promise</code >
105
105
* [ .getMyCommands([ options] )] ( #TelegramBot+getMyCommands ) ⇒ <code >Promise</code >
106
+ * [ .setMyName([ options] )] ( #TelegramBot+setMyName ) ⇒ <code >Promise</code >
107
+ * [ .getMyName([ options] )] ( #TelegramBot+getMyName ) ⇒ <code >Promise</code >
106
108
* [ .setMyDescription([ options] )] ( #TelegramBot+setMyDescription ) ⇒ <code >Promise</code >
107
109
* [ .getMyDescription([ options] )] ( #TelegramBot+getMyDescription ) ⇒ <code >Promise</code >
108
110
* [ .setMyShortDescription([ options] )] ( #TelegramBot+setMyShortDescription ) ⇒ <code >Promise</code >
@@ -120,7 +122,7 @@ TelegramBot
120
122
* [ .sendSticker(chatId, sticker, [ options] , [ fileOptions] )] ( #TelegramBot+sendSticker ) ⇒ <code >Promise</code >
121
123
* [ .getStickerSet(name, [ options] )] ( #TelegramBot+getStickerSet ) ⇒ <code >Promise</code >
122
124
* [ .getCustomEmojiStickers(custom_emoji_ids, [ options] )] ( #TelegramBot+getCustomEmojiStickers ) ⇒ <code >Promise</code >
123
- * [ .uploadStickerFile(userId, pngSticker , stickerFormat, [ options] , [ fileOptions] )] ( #TelegramBot+uploadStickerFile ) ⇒ <code >Promise</code >
125
+ * [ .uploadStickerFile(userId, sticker , stickerFormat, [ options] , [ fileOptions] )] ( #TelegramBot+uploadStickerFile ) ⇒ <code >Promise</code >
124
126
* [ .createNewStickerSet(userId, name, title, pngSticker, emojis, [ options] , [ fileOptions] )] ( #TelegramBot+createNewStickerSet ) ⇒ <code >Promise</code >
125
127
* [ .addStickerToSet(userId, name, sticker, emojis, stickerType, [ options] , [ fileOptions] )] ( #TelegramBot+addStickerToSet ) ⇒ <code >Promise</code >
126
128
* [ .setStickerPositionInSet(sticker, position, [ options] )] ( #TelegramBot+setStickerPositionInSet ) ⇒ <code >Promise</code >
@@ -1642,6 +1644,32 @@ Use this method to get the current list of the bot's commands for the given scop
1642
1644
| --- | --- | --- |
1643
1645
| [ options] | <code >Object</code > | Additional Telegram query options |
1644
1646
1647
+ <a name =" TelegramBot+setMyName " ></a >
1648
+
1649
+ ### telegramBot.setMyName([ options] ) ⇒ <code >Promise</code >
1650
+ Use this method to change the bot's name.
1651
+
1652
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
1653
+ ** Returns** : <code >Promise</code > - True on success
1654
+ ** See** : https://core.telegram.org/bots/api#setmyname
1655
+
1656
+ | Param | Type | Description |
1657
+ | --- | --- | --- |
1658
+ | [ options] | <code >Object</code > | Additional Telegram query options |
1659
+
1660
+ <a name =" TelegramBot+getMyName " ></a >
1661
+
1662
+ ### telegramBot.getMyName([ options] ) ⇒ <code >Promise</code >
1663
+ Use this method to get the current bot name for the given user language.
1664
+
1665
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
1666
+ ** Returns** : <code >Promise</code > - [ BotName] ( https://core.telegram.org/bots/api#botname ) on success
1667
+ ** See** : https://core.telegram.org/bots/api#getmyname
1668
+
1669
+ | Param | Type | Description |
1670
+ | --- | --- | --- |
1671
+ | [ options] | <code >Object</code > | Additional Telegram query options |
1672
+
1645
1673
<a name =" TelegramBot+setMyDescription " ></a >
1646
1674
1647
1675
### telegramBot.setMyDescription([ options] ) ⇒ <code >Promise</code >
@@ -1904,21 +1932,21 @@ Use this method to get information about custom emoji stickers by their identifi
1904
1932
1905
1933
<a name =" TelegramBot+uploadStickerFile " ></a >
1906
1934
1907
- ### telegramBot.uploadStickerFile(userId, pngSticker , stickerFormat, [ options] , [ fileOptions] ) ⇒ <code >Promise</code >
1908
- Use this method to upload a .png file with a sticker for later use in * createNewStickerSet* and * addStickerToSet* methods (can be used multiple
1935
+ ### telegramBot.uploadStickerFile(userId, sticker , stickerFormat, [ options] , [ fileOptions] ) ⇒ <code >Promise</code >
1936
+ Use this method to upload a file with a sticker for later use in * createNewStickerSet* and * addStickerToSet* methods (can be used multiple
1909
1937
times).
1910
1938
1911
1939
** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
1912
1940
** Returns** : <code >Promise</code > - On success, a [ File] ( https://core.telegram.org/bots/api#file ) object is returned
1913
1941
** See** : https://core.telegram.org/bots/api#uploadstickerfile
1914
1942
1915
- | Param | Type | Description |
1916
- | --- | --- | --- |
1917
- | userId | <code >Number</code > | User identifier of sticker file owner |
1918
- | pngSticker | <code >String</code > \| <code >stream.Stream</code > \| <code >Buffer</code > | A file path or a Stream. Can also be a ` file_id ` previously uploaded. ** 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 . |
1919
- | stickerFormat | <code >String</code > | Allow values: ` static ` , ` animated ` or ` video ` |
1920
- | [ options] | <code >Object</code > | Additional Telegram query options |
1921
- | [ fileOptions] | <code >Object</code > | Optional file related meta-data |
1943
+ | Param | Type | Default | Description |
1944
+ | --- | --- | --- | --- |
1945
+ | userId | <code >Number</code > | | User identifier of sticker file owner |
1946
+ | sticker | <code >String</code > \| <code >stream.Stream</code > \| <code >Buffer</code > | | A file path or a Stream with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. Can also be a ` file_id ` previously uploaded . |
1947
+ | stickerFormat | <code >String</code > | < code >static</ code > | Allow values: ` static ` , ` animated ` or ` video ` |
1948
+ | [ options] | <code >Object</code > | | Additional Telegram query options |
1949
+ | [ fileOptions] | <code >Object</code > | | Optional file related meta-data |
1922
1950
1923
1951
<a name =" TelegramBot+createNewStickerSet " ></a >
1924
1952
0 commit comments