From daaa587aa26acea5be52041be598b81728b0079c Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Fri, 10 Jul 2015 03:23:28 +0430 Subject: [PATCH] Add arguments to README example --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1b0701b..5edbed5 100644 --- a/README.md +++ b/README.md @@ -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 [date]', function(message) { + console.log(message.args.city, message.args.date); +}) ``` Bots using this module