This telegram bot allows you to find out exchange rate and weather
This bot is available here
- getting current weather in Moscow, Tokyo, New York and London (OpenWeatherMap API)
- getting current dollar and euro exchange rate against the ruble (cbr-xml-daily.ru API)
You can set database connection settings and token API values in file config/config.php
define('TELEGRAM_API_BOT_TOKEN', NULL);
define('OPENWEATHER_API_TOKEN', NULL);
define('MYSQL_DB_HOST', NULL);
define('MYSQL_DB_USER', NULL);
define('MYSQL_DB_PASSWORD', NULL);
define('MYSQL_MSG_LOGS_DB_NAME', NULL);
Script hook.php
should be installed as a webhook handler for api.telegram.org
For more information, see this official documentation page