Add arguments to README example

This commit is contained in:
Mahdi Dibaiee 2015-07-10 03:23:28 +04:30
parent d4efc99ab9
commit daaa587aa2

View File

@ -41,6 +41,11 @@ bot.command('start', function(message) {
bot.send(welcome);
});
// Arguments, see: https://github.com/mdibaiee/node-telegram-api/wiki/Commands
bot.command('weather <city> [date]', function(message) {
console.log(message.args.city, message.args.date);
})
```
Bots using this module