on-internet
← Community

ModuleNotFoundError: No module named 'aiogram'

Stack Overflow ·

I work in VS Code and I was asked to change the telegram bot script from python-telegram-bot library to aiogram. I've installed that via 'pip install aiogram' and still getting errors like ModuleNotFoundError: No module named 'aiogram' and I don't know what to do. import logging from aiogram import Bot, Dispatcher, types from aiogram.types import ParseMode from aiogram.utils import executor import requests TELEGRAM_BOT_TOKEN = 'XXXXXXXX' COINGECKO_API_KEY = 'XXXXXXXX' logging.basicConfig(level=logging.INFO) bot = Bot(token=TELEGRAM_BOT_TOKEN) dp = Dispatcher(bot) # Function to get token price

Comments

Sign in or sign up to comment and upvote.

No comments yet.