Add arguments to README example
This commit is contained in:
parent
d4efc99ab9
commit
daaa587aa2
@ -41,6 +41,11 @@ bot.command('start', function(message) {
|
|||||||
|
|
||||||
bot.send(welcome);
|
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
|
Bots using this module
|
||||||
|
Loading…
Reference in New Issue
Block a user