Pylance, and IntelliSense work fine with default modules, let's say, os or datetime or so, but I've installed aiogram (any 'custom' modules have the same issues in VScode) and use some classes from it as here
vscode doesn't see where to import it…
I could not handle the video_note in aiogram with FMS. Help me what is wrong???
So, I want to save video_note id then send it to other users how else I can do that?
Sorry if my question wrong its my first question on stack overflow...
async def…
Basically I was doing a small bot for telegram to send pictures from a subreddit, but it gives me an error which I don't know how to fix. Everything where it says (not shown) is something I can't show due to it being something with which anyone…
User insert some values. Just for not spamming him with many messages, I want to pause sending them in loop and wait user tap inline button. So how can I pause them and wait for user tap "Next result" button? Code beneath just simplified, but works…
I'm writing a telegram bot on aiogram and I've decided to use MongoDB as database for the project.
Unfortunately I'm stuck on the user balance feature.
I need to give user a balance and I need to have a possibility to change it.
from aiogram import…
An inline message is sent when the result is displayed inline and should change after 1 second!
Can Aiogram use edit_message()
@dp.inline_handler()
async def inline_echo(inline_query: types.InlineQuery):
print(inline_query)
text =…
I have code like this:
app = FastAPI()
bot = Bot(token=config_data.BOT_TOKEN)
dp = Dispatcher(bot)
I usually start bot in this way:
executor.start_polling(dp)
and start FastApi app:
uvicorn.run(app)
How can I start it in one event loop?
Here I have a code, it works. But I want it to work only only one time on friday:
import logging
from aiogram import Bot, Dispatcher, executor, types
from aiogram.types.message import ContentType
from aiogram.types import ReplyKeyboardRemove, \
…
fuzzer.py
import aiohttp
import asyncio
async def get_page(url=None, extensions=None):
with open("wordlist.txt") as file:
directories = file.readlines()
data = []
async with aiohttp.ClientSession() as session:
for…
The bot sends a message to the telegram channel, how to get the id of the same message from the chat, in order to send a reply to it, thus forming a comment?
Good day!
I am writing a telegram bot and using aiogram library.
Everything seems to be working fine when I run my code.
However, if I leave the bot running for a while, after some time it throws a timeout error. Can't understand what seems to be…
Good afternoon, an update has recently been released in telegram and added web_app buttons. leading to the "site" in the telegram itself, the documentation says that you need to import the script to the page and create a button in the…
I'm new to programming and I'm trying to implement function to my Telegram bot, which should check data from database, compare time and send notification if time has come.
However I have this type of mistake:
DeprecationWarning: There is no current…