eusonlito / GPS-Tracker

GPS Tracker platform for Sinotrack, Coban, Teltonika, Concox, Jimilab, OsmAnd and Queclink devices built with Laravel 11 + PHP 8.2 and MySQL 8. Plataforma GPS Tracker para dispositivos Sinotrack Sinotrack, Coban, Teltonika, Concox, Jimilab, OsmAnd y Queclink creada con Laravel 11 + PHP 8.2 y MySQL 8.
https://tracker-demo.lito.com.es/
MIT License
137 stars 62 forks source link

Telegram Alert #26

Closed d0bro closed 8 months ago

d0bro commented 8 months ago

Notifications do not work in TG Is there an example of what needs to be specified in these parameters?

TELEGRAM_BOT= TELEGRAM_TOKEN=

eusonlito commented 8 months ago

You need to create your own Telegram Bot. You can do it using BotFather contact in Telegram, it will provide you the token.

d0bro commented 8 months ago

I've done it and I know how. I'm interested in the format in which to enter, because I enter this way TELEGRAM_BOT=6888888883 TELEGRAM_TOKEN=AAE3rGr..................0i9EtGVPAgc or that way TELEGRAM_BOT=6888888883 TELEGRAM_TOKEN=6888888883:AAE3rGr..................0i9EtGVPAgc or that way TELEGRAM_BOT=299999998 (chat id) TELEGRAM_TOKEN=6888888883:AAE3rGr..................0i9EtGVPAgc and it doesn't work.

eusonlito commented 8 months ago

TELEGRAM_BOT is the Bot Name, for example d0bro_GPS_Bot, and TELEGRAM_TOKEN is the full token 6888888883:AAE3rGr..................0i9EtGVPAgc.

eusonlito commented 8 months ago

@d0bro solved? Can we close the issue?

d0bro commented 8 months ago

after changing .env, do I need to do something to make it work?

eusonlito commented 8 months ago

You need to regenerate config cache php artisan optimize and then connect to Bot in your profile /profile/telegram