Telegram Bot for data labeling.
php composer.phar install
php init
php yii migrate
For pretty ulrls in yii, add to nginx virtual host config:
location / {
...
try_files $uri $uri/ /index.php&$query_string;
}
a) Setting webhook for local development use ngrok [https://ngrok.com] to redirect webhook via ssl:
ngrok http -host-header=<your_local_domain.name> 80
php yii telegram/set-webhook <your_local_domain.name>
b) Setting webhook for Production:
php yii telegram/set-webhook <domain.name> </path/to/self-signed_certificate>
Example:
php yii telegram/set-webhook labelbot.graphgrail.com /etc/nginx/ssl/labelbot.graphgrail.com.pe
Webhook testing:
php yii telegram/get-webhook-info