474 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
93
views
Pyrogram does not recognize message_entities
I have a problem with forwarding messages with caption_entities. Attached below is the code that I use to make the transfer itself, as well as the result of its operation. The result shows that ...
1
vote
1
answer
120
views
The Pyrogram client does not recognize the id of the channel it created
Below are two scripts. The first one creates a channel, after which it stops working. The second script tries to send a message to this channel, but at the moment of sending, the second script ...
0
votes
1
answer
78
views
Aiogram Bad Request: can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
i have an Aiogram project and get errors in log file. The error log doesn't provide information about where exactly in the project this happened, only information about where in the package it ...
2
votes
1
answer
75
views
Pyrogram bot doesn't send downloaded media
I have a set of functions written in Pyrogram that make up a user bot that copies media messages from one Telegram channel to another. The problem is that it doesn't copy the media messages in the ...
-1
votes
1
answer
78
views
Bad: telegram bot does not work (aiogram)
I have no idea how to fix it
I try this:
@Router.message(F.text == "/start")
async def send_welcome(message: types.Message, state: FSMContext):
await state.set_state(UserState....
0
votes
0
answers
52
views
I can't upload an image via InputStoryContentPhoto to aiogram3
I'm trying to write a bot on aiogram3 that will create stories in telegram via business mode
photo = FSInputFile("./a.jpg", filename="a.jpg")
content = InputStoryContentPhoto(photo=...
1
vote
0
answers
73
views
Aiogram: why does @router.message(F.successful_payment) not fire after Telegram test payment?
I’m testing Telegram Payments in a bot built with Aiogram 3.x.
Environment: Python 3.11, Aiogram 3.4, provider = Smart Glocal TEST token from BotFather.
The invoice shows and the test payment ...
1
vote
0
answers
67
views
Polling + Webhook behind NGINX, slow updates on production
Setup:
Telegram bot built with aiogram (Python 3.10)
Main bot works via long polling
Additional bots (inviters) connect to the main bot
Inviters generate invite links to private channels and accept ...
2
votes
1
answer
284
views
How to properly rate-limit message sending in aiogram Telegram bot?
I'm building a Telegram bot using aiogram, and I need to limit the rate of sending messages:
No more than 25 messages per second globally (across all chats).
No more than 3 messages per 3 seconds per ...
1
vote
0
answers
396
views
Problem with receiving business connection id in aiogram bot
There was a problem, I am making a business bot on aiogram, but I can not understand how to implement a connection check, I saw the following system in one bot, the bot asks to add itself as a chat ...
-3
votes
2
answers
977
views
ImportError: cannot import name 'executor' from 'aiogram.utils'
Before I tried to reinstall pip and I also tried to import executor this way
from aiogram.utils import executor but I still have ImportError.
from aiogram import Bot, Dispatcher, types
from aiogram....
0
votes
1
answer
230
views
How do I get the FSM context to pass to my function?
Utilities.py
import aiogram
import aiogram.filters
import aiogram.types
import aiogram.fsm.context
import aiogram.fsm.state
from aiogram.fsm.storage.redis import RedisStorage
import redis.asyncio as ...
2
votes
0
answers
39
views
Bot Doesn't Start When Including CRM Router
I'm building a Telegram bot using Aiogram, and I'm encountering a problem where my bot doesn't start when I include the crm_router. However, when I replace it with auto_responder_router, everything ...
2
votes
0
answers
86
views
How can I implement uploading multiple files at once in aiogram?
I need to implement multiple file uploads in one message. I couldn't find how to do it in the official documentation.
For example, I implemented only loading one file at a time and storing them in a ...
0
votes
1
answer
538
views
Aiogram message formatting
I'm developing a telegram bot on aiogram and faced a problem. I need to highlight the text bold italicized in the MD V1. How do I do it? I tried different formats: triple underline, triple asterisks, ...