프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$command | The actual command that is going to be reported |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$shortener_url | Url Shortener request url | ||
$token | Yandex AppMetrica application key | ||
$track_url | Tracker request url |
메소드 | 설명 | |
---|---|---|
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 shortenUrl ( $url, $user_id ) : string | ||
$url | ||
$user_id | ||
리턴 | string |