Usage
Less than 1 minute
First of all, specify the name of the bot, the name of which you need to check the user. Or leave the option blank to get the default bot.
Example
<?php
/**
* Set up a basic configuration first
* Add other bots if needed
*/
/** I use the default bot */
$bot = $tgWebValid->bot();
/** Or, specify which bot I want to work with */
$bot = $tgWebValid->bot(
name: 'secondary'
);
Parameters
name
- Type:
string
- Required: No
By specifying the name, you will get access to the multibot added in the previous step.
Warning
If you specify a bot name but don't add it, we'll be forced to throw a BotException in order to maintain integrity
Validators
Next, you need to decide on the type of authentication that needs to be done.
The list of available validators can be found on this page