Read the full tutorial in my medium
Check the bot in here.
This bot will gather tweets related to the keyword that you sent, and calculate the average sentiment of those tweets (negative, neutral, or positive).
Install the libraries.
pip3 install tweepy nltk google-cloud-language python-telegram-bot
Create a developer account to access Twitter API and a service account key to access Google Natural Language API, you can follow the "Getting Started" steps in here
Configure the path.
export GOOGLE_APPLICATION_CREDENTIALS='[PATH_TO_CREDS.JSON]'
Run the program.
python3 main.py