Updated README.md

experimental
yago 11 years ago
parent c504fb14f0
commit 3b96314e5d
  1. 7
      README.md

@ -1,5 +1,10 @@
[![Build Status](https://travis-ci.org/yagop/telegram-bot-api.svg?branch=master)](https://travis-ci.org/yagop/telegram-bot-api) [![Coverage Status](https://coveralls.io/repos/yagop/telegram-bot-api/badge.svg?branch=develop)](https://coveralls.io/r/yagop/telegram-bot-api?branch=develop) [![Build Status](https://travis-ci.org/yagop/telegram-bot-api.svg?branch=master)](https://travis-ci.org/yagop/telegram-bot-api) [![Coverage Status](https://coveralls.io/repos/yagop/telegram-bot-api/badge.svg?branch=develop)](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 ```sh
npm install node-telegram-bot-api 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 ## Class: TelegramBot

Loading…
Cancel
Save