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 }) ```