From 06d4c6c28e87ff01de7c929f7d4d99cdd990134d Mon Sep 17 00:00:00 2001 From: Vitaly Date: Tue, 6 Dec 2016 19:52:06 +0300 Subject: [PATCH] Small readme typo fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6408184..3ce581b 100755 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ tg.router new StartController() ) ``` -* RegextCommand - any regexp command +* RegexpCommand - any regexp command ```js tg.router .when( @@ -271,10 +271,10 @@ const tg = new Telegram.Telegram('YOUR_TOKEN', { workers: 1 }) -tg.sendMessage(123, 'test message') //will be sent 2 times (one time on master and one time on worker) +tg.api.sendMessage(123, 'test message') //will be sent 2 times (one time on master and one time on worker) tg.onMaster(() => { - tg.sendMessage(123, 'test message') //will be sent one time + tg.api.sendMessage(123, 'test message') //will be sent one time }) ```