fastcontract / Eth-Validator-Telegram-Bot

This bot watches validators and notifies the user via Telegram when events happen.
3 stars 1 forks source link

cannot import name 'Filters' from 'telegram.ext' (/home/marv2190/.local/lib/python3.10/site-packages/telegram/ext/__init__.py) #1

Open Marv2190 opened 11 months ago

Marv2190 commented 11 months ago

cannot import name 'Filters' from 'telegram.ext' (/home/marv2190/.local/lib/python3.10/site-packages/telegram/ext/init.py) Getting this Error when i try to start the bot

Marv2190 commented 11 months ago

Change from telegram.ext import Updater, CommandHandler, MessageHandler, Filters to from telegram.ext import Updater, CommandHandler, MessageHandler, filters

in the main.py

Marv2190 commented 11 months ago

I think i got this error, because i installed the Telegram Bot with pip install python-telegram-bot --upgrade. But you should install it with pip3 install -r requirements.txt - so it will get the right Version...