Relative Content

Tag Archive for pythontelegramtelegram-botaiogram

aiogram. can the bot send a reaction to a message in a personal chat, after using the button in the group?

The bot sends the photo from the personal chat to the group and attaches the InlineKeyboardButton accept to the photo. after pressing the InlineKeyboardButton accept in the group chat, the bot should set the reaction to the previously forwarded photo in the personal chat. can this be done?
my code does not work correctly: it puts the reaction under the photo in the group, and not in the personal chat. I need to somehow show in personal chat that the photo was approved in the group chat.
tried other ways, but I’m not doing something right, I get an error:
aiogram.exceptions.TelegramBadRequest: Telegram server says – Bad Request: message to react not found.
Any help is appreciated! Thanks!

aiogram. can the bot send a reaction to a message in a personal chat, after using the button in the group?

The bot sends the photo from the personal chat to the group and attaches the InlineKeyboardButton accept to the photo. after pressing the InlineKeyboardButton accept in the group chat, the bot should set the reaction to the previously forwarded photo in the personal chat. can this be done?
my code does not work correctly: it puts the reaction under the photo in the group, and not in the personal chat. I need to somehow show in personal chat that the photo was approved in the group chat.
tried other ways, but I’m not doing something right, I get an error:
aiogram.exceptions.TelegramBadRequest: Telegram server says – Bad Request: message to react not found.
Any help is appreciated! Thanks!

How to Prevent Telegram Inline Keyboard Buttons from Collapsing in Aiogram 3

I’m developing a Telegram bot using Aiogram 3, and I’m facing an issue with inline keyboards. When the photo is narrow, the inline keyboard buttons collapse into three dots. I want to ensure that the caption of the photo is extended to a fixed size to prevent this behavior without changing the visible caption text.

telegram bot with inline buttons

I need create a Telegram bot that will send messages to the user with several inline buttons. When clicking on one of them, the bot should simply repeat the user’s choice and immediately send a next message. After the user answers all 4 questions, the bot will collect information from my dataset and form a portfolio based on the user’s answers. How do I implement this for aiogram 3.x?

Errno 13 Can not write request body | aiogram

I am trying to send videos with buttons and get the button input to further proceed. I am using the latest version of python and aiogram.
This is only a snipped, all variables are defined.