https://github.com/grishnov/telegrambot_weather-exchangerate
Telegram bot 🤖 in PHP allows you to find out the current exchange rate and weather
https://github.com/grishnov/telegrambot_weather-exchangerate
bot exchange-rate telegram-bot telegram-bot-example weather
Last synced: 4 months ago
JSON representation
Telegram bot 🤖 in PHP allows you to find out the current exchange rate and weather
- Host: GitHub
- URL: https://github.com/grishnov/telegrambot_weather-exchangerate
- Owner: GRISHNOV
- License: mit
- Created: 2020-04-04T17:00:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T17:20:38.000Z (almost 5 years ago)
- Last Synced: 2025-03-23T14:36:35.502Z (7 months ago)
- Topics: bot, exchange-rate, telegram-bot, telegram-bot-example, weather
- Language: PHP
- Homepage: https://t.me/ultrapapich_619top_bot
- Size: 2.44 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
TelegramBot_Weather&ExchangeRate
This telegram bot allows you to find out exchange rate and weather
This bot is available [here](https://t.me/ultrapapich_619top_bot)
## 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``````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](https://core.telegram.org/bots/api#setwebhook) official documentation page
***
## Demonstration
![]()