Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.2 KB

File metadata and controls

38 lines (26 loc) · 1.2 KB

TelegramBot_Weather&ExchangeRate

This telegram bot allows you to find out exchange rate and weather

This bot is available here

Main functions:

  • 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)

Configuration and deployment

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


Demonstration