mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-24 19:08:11 +00:00
Updated README.md
This commit is contained in:
parent
ebfe676ddd
commit
781dff1164
21
README.md
21
README.md
@ -24,6 +24,9 @@ There are some other examples on [examples](https://github.com/yagop/node-telegr
|
|||||||
|
|
||||||
* * *
|
* * *
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Start src/telegram.js -->
|
||||||
|
|
||||||
## TelegramBot
|
## TelegramBot
|
||||||
|
|
||||||
Both request method to obtain messages are implemented. To use standard polling, set `polling: true`
|
Both request method to obtain messages are implemented. To use standard polling, set `polling: true`
|
||||||
@ -154,6 +157,22 @@ See: https://core.telegram.org/bots/api#sendDocument
|
|||||||
|
|
||||||
* **Promise**
|
* **Promise**
|
||||||
|
|
||||||
|
## sendSticker(chatId, A, [options])
|
||||||
|
|
||||||
|
Send .webp stickers.
|
||||||
|
|
||||||
|
See: https://core.telegram.org/bots/api#sendsticker
|
||||||
|
|
||||||
|
### Params:
|
||||||
|
|
||||||
|
* **Number|String** *chatId* Unique identifier for the message recipient
|
||||||
|
* **String|stream.Stream** *A* file path or a Stream. Can also be a `file_id` previously uploaded.
|
||||||
|
* **Object** *[options]* Additional Telegram query options
|
||||||
|
|
||||||
|
### Return:
|
||||||
|
|
||||||
|
* **Promise**
|
||||||
|
|
||||||
## sendChatAction(chatId, action)
|
## sendChatAction(chatId, action)
|
||||||
|
|
||||||
Send chat action.
|
Send chat action.
|
||||||
@ -172,3 +191,5 @@ See: https://core.telegram.org/bots/api#sendchataction
|
|||||||
### Return:
|
### Return:
|
||||||
|
|
||||||
* **Promise**
|
* **Promise**
|
||||||
|
|
||||||
|
<!-- End src/telegram.js -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user