This is a bot built to help people get new information about coronavirus, was made in 2020.
- Give information about the weather in Moscow, Nizhny Novgorod and Saint Petersburg. It includes pressure, max., min., cf. temperature, humidity, wind speed, sunset and dawn time. Everything is implemented with the help of buttons under the bot's messages for more comfort. Moreover the bot can advise users how to dress for the current day.
- Give a huge amount of information about the state of coronovirus. User can ask WhyNot about the quantity of dead, infected, recoveries, ill right now and new infected by comparing the state yesterday and today by choosing Provinces/States, Countries/Districts to see the required statistics about the top 5 'biggest' countries. Users can also enter the name of the country to get information exactly about it.
- Give information about the dollar or euro rate for the current date. This function is implemented by buttons as others.
- Get user's favorite post on cat-fact.herokuapp.com.
- /start - start working with the bot.
- /help - overview of available functionality.
- /date - see the current date and time.
- /fact - see your favorite post on cat-fact.herokuapp.com.
- /weather - see the weather
- /check_exchange_rates - see the dollar or euro rate for the current date.
- /corono_stats - overview the coronovirus state in the World
- /corona_video - to get a video from base about corona
- Get information about the time between the last message sent from the bot and our time when we get the message of a user. This function helps to understand how opened for communication with the bot our user is.
- Get information about the five last users, who were communicating with the bot.
- /elapsed_time - to get the time between messages
- /history - to get the history of users
-
Set up Python environment
-
Create virtual environment python -m venv venv
-
Activate virtual environment and install requirements:
venv\Scripts\activate - on Linux
venv\Scripts\activate.bat - on Windows
-
pip install -r requirements.txt
-
Execute python chat_bot_template.py Try your bot - find it in Telegram and press /start.