Property | Type | Description | |
---|---|---|---|
$command | The actual command that is going to be reported |
Property | Type | Description | |
---|---|---|---|
$shortener_url | Url Shortener request url | ||
$token | Yandex AppMetrica application key | ||
$track_url | Tracker request url |
Method | Description | |
---|---|---|
initializeBotan ( $token ) | Initialize Botan | |
lock ( string $command = '' ) | Lock function to make sure only the first command is reported ( in case commands are calling other commands $telegram->executedCommand() ) | |
shortenUrl ( $url, $user_id ) : string | Url Shortener function | |
track ( string $input, string $command = '' ) : boolean | string | Track function |
public static initializeBotan ( $token ) | ||
$token |
public static shortenUrl ( $url, $user_id ) : string | ||
$url | ||
$user_id | ||
return | string |
public static $command |
protected static $shortener_url |