Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyTapok-bit committed Jul 22, 2023
1 parent 142e367 commit 0c31554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=...');

Expand Down

0 comments on commit 0c31554

Please sign in to comment.