This is a Telegram Bot for Pokemon GO. This bot is controlled via a Webhook, notifications occur in realtime. Each user can configure which notification for which Pokémon they want.
git clone https://github.com/n30nl1ght/Pokemon-Notifier.git
config.ini.example
to config.ini
config.ini
and enter your db details, language and Telegram Bot API-Key.logs/
and sql/
has write rights (chmod 777).https://yourdomain.com/pokeHook.php
.
HTTPS and a signed and valid SSL certificate are mandatory, these are Telegram API requirements !https://api.telegram.org/bot[API-KEY]/setWebhook?url=[URL to your install]/telegramHook.php
.
As already said, this HAS to be HTTPS and your domain needs a valid SSL certificate.config.ini
, to find your your ID do the following, on a Linux Shell for example:
curl -X POST https://api.telegram.org/bot[API-KEY]/getUpdates