mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
Updated README.md
This commit is contained in:
parent
c504fb14f0
commit
3b96314e5d
@ -1,5 +1,10 @@
|
||||
[](https://travis-ci.org/yagop/telegram-bot-api) [](https://coveralls.io/r/yagop/telegram-bot-api?branch=develop)
|
||||
|
||||
Node.js module to interact with official [Telegram Bot API](https://core.telegram.org/bots/api). A bot token is needed, to obtain one, talk to [@botfather](telegram.me/BotFather) and create a new bot.
|
||||
|
||||
Both request method to obtain messages are implemented. To use standard polling, set `polling: true`
|
||||
on `options`. Notice that [webHook](https://core.telegram.org/bots/api#setwebhook) will need a valid (not self signed) SSL certificate.
|
||||
|
||||
```sh
|
||||
npm install node-telegram-bot-api
|
||||
```
|
||||
@ -18,6 +23,8 @@ bot.on('message', function (msg) {
|
||||
});
|
||||
```
|
||||
|
||||
There are some other examples on [examples](https://github.com/yagop/node-telegram-bot-api/tree/master/examples).
|
||||
|
||||
* * *
|
||||
|
||||
## Class: TelegramBot
|
||||
|
Loading…
x
Reference in New Issue
Block a user