I was writing a bot and I was dealing with this problem.
Who knows how to fix it?
enter image description here
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.types import message
from aiogram.utils import…
mistakes
mistakes 2
photo
https://github.com/mahenzon/aiogram-lessons/tree/master/lesson-02
I can't understand why my code isn't working. I took code from here and only change file config.py, change token and MY_ID.
executor.py [ LINE:362 ]# INFO…
How to get the number of joins in a private channel by the link generated by the bot earlier?
I want my bot to be able to get the count of joins by the link or to handle joins by links generated by the bot earlier
I will be grateful for the solution
I can’t figure out how to make two people communicate through the bot? That is, user1 >message> bot>message>user2 It turns out that the bot acts as an intermediary, passing messages from one user to another
I was thinking of making a database with a…
i have a folder with a bot and a folder with a future api. The problem is that when I try to import a class from the database folder in the bot, it gives an error that this package does not exist. inits are all written, what could be wrong? Or how…
How I make two parametres for check database
info = db.execute(f"SELECT * FROM 'storage_users' WHERE status = ? balance = ?", [status, balance])
Two WHERE parametres
I am creating TelegramBot using aiogram and SQLAlchemy to interact with database. I want to start with authorization. All users' phone numbers are stored in SQLite database. When the user runs Bot, it should ask the user to enter phone number. After…