mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-30 13:58:27 +00:00
Emits typo
This commit is contained in:
parent
12c6f60333
commit
7b7191b464
@ -5,7 +5,7 @@ var options = {
|
||||
polling: true
|
||||
};
|
||||
|
||||
var token = 'YOUR_TELEGRAM_BOT_TOKEN';
|
||||
var token = process.env.TELEGRAM_BOT_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN';
|
||||
|
||||
var bot = new TelegramBot(token, options);
|
||||
bot.getMe().then(function (me) {
|
||||
|
@ -16,7 +16,7 @@ var requestPromise = Promise.promisify(request);
|
||||
/**
|
||||
* 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.
|
||||
* Emmits `message` when a message arrives.
|
||||
* Emits `message` when a message arrives.
|
||||
*
|
||||
* @class TelegramBot
|
||||
* @constructor
|
||||
|
Loading…
x
Reference in New Issue
Block a user