Skip to content

Commit

Permalink
Merge pull request #56 from CrazyTapok-bit/feature/update-readme
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
CrazyTapok-bit authored Jul 22, 2023
2 parents 142e367 + 0c31554 commit 424b1e9
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 424b1e9

Please sign in to comment.