From 0c315543b79be526ac37cbd4961effb461f49587 Mon Sep 17 00:00:00 2001 From: CrazyTapok Date: Sat, 22 Jul 2023 20:03:06 +0300 Subject: [PATCH] Update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d5a5908..6830ba6 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ If your project uses multiple bots, you can easily interact with them, just add use TgWebValid\BotConfig; -$tgWebValid->addBot(new BotConfig('secondary' 'TELEGRAM_BOT_TOKEN_2')); -$tgWebValid->addBot(new BotConfig('minor' 'TELEGRAM_BOT_TOKEN_3')); +$tgWebValid->addBot(new BotConfig('secondary', 'TELEGRAM_BOT_TOKEN_2')); +$tgWebValid->addBot(new BotConfig('minor', 'TELEGRAM_BOT_TOKEN_3')); ``` Getting a bot to work is easy. Specify the name of the bot to work with, or leave the argument empty to get the default bot @@ -147,8 +147,8 @@ try { $tgWebValid = new TgWebValid('TELEGRAM_BOT_TOKEN', true); // Add bots only when needed - $tgWebValid->addBot(new BotConfig('secondary' 'TELEGRAM_BOT_TOKEN_2')); - $tgWebValid->addBot(new BotConfig('minor' 'TELEGRAM_BOT_TOKEN_3')); + $tgWebValid->addBot(new BotConfig('secondary', 'TELEGRAM_BOT_TOKEN_2')); + $tgWebValid->addBot(new BotConfig('minor', 'TELEGRAM_BOT_TOKEN_3')); $initData = $tgWebValid->bot()->validateInitData('query_id=...');