PHP 클래스 Longman\TelegramBot\Botan

Integration with http://botan.io statistics service for Telegram bots
파일 보기 프로젝트 열기: akalongman/php-telegram-bot 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

initializeBotan() 공개 정적인 메소드

Initialize Botan
public static initializeBotan ( $token )
$token

lock() 공개 정적인 메소드

Lock function to make sure only the first command is reported ( in case commands are calling other commands $telegram->executedCommand() )
public static lock ( string $command = '' )
$command string

shortenUrl() 공개 정적인 메소드

Url Shortener function
public static shortenUrl ( $url, $user_id ) : string
$url
$user_id
리턴 string

track() 공개 정적인 메소드

Track function
public static track ( string $input, string $command = '' ) : boolean | string
$input string
$command string
리턴 boolean | string

프로퍼티 상세

$command 공개적으로 정적으로 프로퍼티

The actual command that is going to be reported
public static $command

$shortener_url 보호되어 있는 정적으로 프로퍼티

Url Shortener request url
protected static $shortener_url

$token 보호되어 있는 정적으로 프로퍼티

Yandex AppMetrica application key
protected static $token

$track_url 보호되어 있는 정적으로 프로퍼티

Tracker request url
protected static $track_url