Relative Content

Tag Archive for pythonaiogram

why is update is not handle? (AIOGRAM)

if Quest.quest_I == ‘img/1_var_1.png’: await state.update_data(choice=message.text) if message.text == ‘1345’: await message.answer(‘Correct’, reply_markup=Kb.stop_button_1) elif message.text != ‘1345’ and message.text != ‘Other’: await message.answer(‘Incorrect’, reply_markup=Kb.stop_button_1) elif Quest.quest_I == ‘img/1_var_2.png’: await state.update_data(choice=message.text) if message.text == ‘1325’: await message.answer(‘Correct’, reply_markup=Kb.stop_button_1) elif message.text != ‘1325’ and message.text != ‘Other’: await message.answer(‘Incorrect’, reply_markup=Kb.stop_button_1) elif Quest.quest_I == ‘img/1_var_3.png’: await state.update_data(choice=message.text) if […]

how to find a variable in a message

the PRINT command outputs this message to me. How do I get the text variable, if there are 2 of them, I need text with data=’564nn#id5282279483′

How can I access bot in Router? Aiogram 3.7.0

I need to use bot.get_chat_member() in my router in file callbackHandlers.py
I can’t import main to callbackHandlers cuz callbackHandlers where already imported into main and i get import error.
Maybe there is a way to use method getChatMember without bot object?

How to send a bot a command via url?

I’m trying to send the bot a command with arguments via url I’ve seen solutions like this: https://t.me/_bot?start=my_data, but it doesn’t work for me and just follows the link to the bot.
Please write how to correctly generate the url for my task, and whether an additional handler is needed for this in the code

How to send multiple photos in 1 message

I don’t understand how to send multiple photos in aiogram 3, first saw the solution on another site with aiogram smaller version but it doesn’t work in 3.

Bad: How to send multiple photos in 1 message

I don’t understand how to send multiple photos in aiogram 3, first saw the solution on another site with aiogram smaller version but it doesn’t work in 3. I would like to see your solutions