mkdryden / telegram-stats-bot

A simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statistical tables and plots to users as Telegram messages.
GNU General Public License v3.0
53 stars 20 forks source link

I GET THIS ERROR WHILE CREATING A TELEGRAM BOT. SOMEONE PLEASE HELP ME 😭 #14

Closed ayushman979 closed 1 year ago

ayushman979 commented 1 year ago

raceback (most recent call last): File "c:\Users\ayush\OneDrive\Desktop\tele\tele.py", line 2, in from telegram.ext import * File "C:\Users\ayush\AppData\Local\Programs\Python\Python311\Lib\site-packages\telegram\ext__init.py", line 21, in from .extbot import ExtBot File "C:\Users\ayush\AppData\Local\Programs\Python\Python311\Lib\site-packages\telegram\ext\extbot.py", line 24, in import telegram.bot File "C:\Users\ayush\AppData\Local\Programs\Python\Python311\Lib\site-packages\telegram\bot.py", line 56, in from telegram import ( ImportError: cannot import name 'Animation' from 'telegram' (C:\Users\ayush\AppData\Local\Programs\Python\Python311\Lib\site-packages\telegram\init__.py)

mkdryden commented 1 year ago

This is a duplicate of #9. Make sure you don't have the python-telegram-bot package installed, as per https://github.com/mkdryden/telegram-stats-bot/issues/9#issuecomment-1091828211