So, I'm building a pretty sizeable bot and I've ran into a problem: for some reason in a very specific part of my code I just can't run a coroutine.
I am getting the error when I call bot.send_message.
I've already tried creating tasks, new threads,…
using aiogram 3 i try to download sond for 1hr+. download is good, but sending via telegram so week..
@router.message(Command(commands=['youtube']))
async def music_download(message: types.Message):
try:
text =…
I have two scripts, which are written on telethon and aiogram. My telethon scripts resend massages from the groups and aiogram process them (will be completed later). Unfortunately, when both of scripts are executing simultaneously, that cause…
When my bot try to resend a group of photos, it splits it into separate messages. If it is a group of photos (in Telegram), I need to resend it wholly, as a group within one message. How to fix it?
from telethon import TelegramClient, events
import…
How to make Return buttons in aiogram with FSM
class AdminConsole(StatesGroup):
menuEntry = State()
menuChoice = State()
choosenStudent = State()
Saction = State()
newName = State()
newID = State()
rmConfirmation =…
In theory, the user should send a screenshot and he was limited to one screenshot until it is not approved for subsequent submissions by the owner of the bot, but why does not appear after the command list of users in which this restriction and with…
I was able to connect a model trained on Catboost with my bot, but when I enter data for analysis, an error pops up.
raise CatBoostError("Invalid {}[{}] = {} value: index must be < {}.".format(features_name, indx, feature, features_count))…
How to implement a share profile button in aiogram like PremiumBot?
Im not sure if it is even possible because i didnt found any info about it in official documentation
Create share profile button like in PremiumBot (I attached photo)
enter image…
it keeps on awaiting for a username or link in every message I send.
@dp.message_handler(commands="posts")
async def cmd_stat(message: types.Message):
await message.answer("Input a username or else send profile link")
@dp.message_handler()
…
So I was making a python bot, that sends results of it's work to Telegram.
it was working until yesterday. Now when im starting it it returns this error:
File "E:\FindBot\handlers\users\start.py", line 4, in
from loader import dp
File…
I am trying to get updates:
dp = Dispatcher()
@dp.update()
async def message_handler(update: types.Update):
print(update)
But it doesn't work and nothing is output to the console
I need to intercept any events and make it so that other…
I wrote a function on pyrogram that parses the history of a chat. The history is filtered by participant id, if a specific user wrote to the chat, the message will be forwarded to me. (We need to know: the name of the group, the id of the…
I try to make command usable after entering password, please help. This command doesnt work after password.
from aiogram import Bot, Dispatcher, executor, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher…
I tried a few things but while I'm able to display an inline button, I'm unable to get a picture button with a local icon stored in a folder within the script directory.
Any advice?
I've tried
import io
import os
import logging
from aiogram import…