Skip to content

Telegram bot 🤖 in PHP allows you to find out the current exchange rate and weather

License

Notifications You must be signed in to change notification settings

GRISHNOV/TelegramBot_Weather-ExchangeRate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Telegram bot 🤖 in PHP allows you to find out the current exchange rate and weather

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages