@@ -109,12 +109,14 @@ TelegramBot
109
109
* [ .getGameHighScores(userId, [ options] )] ( #TelegramBot+getGameHighScores ) ⇒ <code >Promise</code >
110
110
* [ .deleteMessage(chatId, messageId, [ options] )] ( #TelegramBot+deleteMessage ) ⇒ <code >Promise</code >
111
111
* [ .sendInvoice(chatId, title, description, payload, providerToken, startParameter, currency, prices, [ options] )] ( #TelegramBot+sendInvoice ) ⇒ <code >Promise</code >
112
+ * [ .createInvoiceLink(title, description, payload, providerToken, currency, prices, [ options] )] ( #TelegramBot+createInvoiceLink ) ⇒ <code >String</code >
112
113
* [ .answerShippingQuery(shippingQueryId, ok, [ options] )] ( #TelegramBot+answerShippingQuery ) ⇒ <code >Promise</code >
113
114
* [ .answerPreCheckoutQuery(preCheckoutQueryId, ok, [ options] )] ( #TelegramBot+answerPreCheckoutQuery ) ⇒ <code >Promise</code >
114
115
* [ .getStickerSet(name, [ options] )] ( #TelegramBot+getStickerSet ) ⇒ <code >Promise</code >
115
116
* [ .uploadStickerFile(userId, pngSticker, [ options] , [ fileOptions] )] ( #TelegramBot+uploadStickerFile ) ⇒ <code >Promise</code >
116
117
* [ .createNewStickerSet(userId, name, title, pngSticker, emojis, [ options] , [ fileOptions] )] ( #TelegramBot+createNewStickerSet ) ⇒ <code >Promise</code >
117
118
* [ .addStickerToSet(userId, name, pngSticker, emojis, [ options] , [ fileOptions] )] ( #TelegramBot+addStickerToSet ) ⇒ <code >Promise</code >
119
+ * [ .setStickerSetThumb(userId, name, pngThumb, [ options] , [ fileOptions] )] ( #TelegramBot+setStickerSetThumb ) ⇒ <code >Promise</code >
118
120
* [ .setStickerPositionInSet(sticker, position, [ options] )] ( #TelegramBot+setStickerPositionInSet ) ⇒ <code >Promise</code >
119
121
* [ .deleteStickerFromSet(sticker, [ options] )] ( #TelegramBot+deleteStickerFromSet ) ⇒ <code >Promise</code >
120
122
* [ .sendMediaGroup(chatId, media, [ options] )] ( #TelegramBot+sendMediaGroup ) ⇒ <code >Promise</code >
@@ -1628,10 +1630,29 @@ Use this method to send an invoice.
1628
1630
| prices | <code >Array</code > | Breakdown of prices |
1629
1631
| [ options] | <code >Object</code > | Additional Telegram query options |
1630
1632
1633
+ <a name =" TelegramBot+createInvoiceLink " ></a >
1634
+
1635
+ ### telegramBot.createInvoiceLink(title, description, payload, providerToken, currency, prices, [ options] ) ⇒ <code >String</code >
1636
+ Create Invoice Link
1637
+ Use this method to create a link for an invoice. Returns the created invoice link as String on success.
1638
+
1639
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
1640
+ ** See** : https://core.telegram.org/bots/api#createinvoicelink
1641
+
1642
+ | Param | Type | Description |
1643
+ | --- | --- | --- |
1644
+ | title | <code >String</code > | Product name, 1-32 characters |
1645
+ | description | <code >String</code > | Product description, 1-255 characters |
1646
+ | payload | <code >String</code > | Bot defined invoice payload |
1647
+ | providerToken | <code >String</code > | Payment provider token |
1648
+ | currency | <code >String</code > | Three-letter ISO 4217 currency code |
1649
+ | prices | <code >Array</code > | Breakdown of prices |
1650
+ | [ options] | <code >Object</code > | Additional Telegram query options |
1651
+
1631
1652
<a name =" TelegramBot+answerShippingQuery " ></a >
1632
1653
1633
1654
### telegramBot.answerShippingQuery(shippingQueryId, ok, [ options] ) ⇒ <code >Promise</code >
1634
- Answer shipping query..
1655
+ Answer shipping query.
1635
1656
Use this method to reply to shipping queries.
1636
1657
1637
1658
** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
@@ -1733,6 +1754,27 @@ Returns True on success.
1733
1754
| [ options] | <code >Object</code > | Additional Telegram query options |
1734
1755
| [ fileOptions] | <code >Object</code > | Optional file related meta-data |
1735
1756
1757
+ <a name =" TelegramBot+setStickerSetThumb " ></a >
1758
+
1759
+ ### telegramBot.setStickerSetThumb(userId, name, pngThumb, [ options] , [ fileOptions] ) ⇒ <code >Promise</code >
1760
+ Use this method to add a thumb to a set created by the bot.
1761
+ Returns True on success.
1762
+
1763
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
1764
+ ** See** : https://core.telegram.org/bots/api#setstickersetthumb
1765
+ ** Todo**
1766
+
1767
+ - [ ] Add tests for this method!
1768
+
1769
+
1770
+ | Param | Type | Description |
1771
+ | --- | --- | --- |
1772
+ | userId | <code >Number</code > | User identifier of sticker set owner |
1773
+ | name | <code >String</code > | Sticker set name |
1774
+ | pngThumb | <code >String</code > \| <code >stream.Stream</code > \| <code >Buffer</code > | A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; |
1775
+ | [ options] | <code >Object</code > | Additional Telegram query options |
1776
+ | [ fileOptions] | <code >Object</code > | Optional file related meta-data |
1777
+
1736
1778
<a name =" TelegramBot+setStickerPositionInSet " ></a >
1737
1779
1738
1780
### telegramBot.setStickerPositionInSet(sticker, position, [ options] ) ⇒ <code >Promise</code >
0 commit comments