How to properly organize chains of states in aiogram 3
So, I’m interested to know: is there any more practical way to organize chains of states than the one I suggested below?
How to properly organize chains of states in aiogram 3
So, I’m interested to know: is there any more practical way to organize chains of states than the one I suggested below?
How to properly organize chains of states in aiogram 3
So, I’m interested to know: is there any more practical way to organize chains of states than the one I suggested below?
why doesn’t the state switch immediately?
@router.callback_query(StateFilter(FSMPag.forward)) async def collection_f(callback: CallbackQuery, state: FSMContext): conn = sqlite3.connect(‘mega_db.db’) cur = conn.cursor() user_id = callback.from_user.id cur.execute(“””SELECT array FROM users WHERE user_id = ?”””, (user_id,)) result = cur.fetchall()[0][0] numbers = [int(i) for i in result.strip(‘[]’).replace(‘,’, ”).split()] pag_num[user_id] += 1 pathCard = pathlib.Path(dir_p, “cards”, f”{pag_card[user_id][int(pag_num[user_id])]}.jpg”) pathCard = FSInputFile(pathCard) caption=lexicon[‘collection’] if callback.data == ‘forward’: await state.set_state(FSMPag.forward) if […]
TypeError: BaseModel.__init__() takes 1 positional argument but 2 were given after using edit_media method in aiogram
I have a problem with using edit_media method in aiogram
How to create a refferal link to chat bot using aiogram
with aiogram 3 with easiest way
I can’t get what message the bot aiogram referred to
I am writing a bot in a chat and I can’t get what message the bot referred to. I do through Message.reply_to_message and returns None
Check is user admin in group or supergroup in telegram, by using get_chat_administrators&
I need to get list of group admins and check message.from_user.id in that list
does not output what is linked to the callback function
@router.callback_query(F.date == ‘go’)
async def ISP(callback: CallbackQuery):
await callback.answer(‘перейдите’,reply_markup=kb.main)
Support bot. Can someone help? Python,aiogram
import asyncio from aiogram.fsm.state import StatesGroup, State from aiogram.filters import StateFilter from aiogram.fsm.context import FSMContext from aiogram import Bot, Dispatcher, types from aiogram.filters.command import Command from aiogram.utils.keyboard import InlineKeyboardBuilder import kbb from aiogram.types import CallbackQuery,Message class CreatePreviewOrder(StatesGroup): SET_TEXT = State() SUBMIT = State() bot = Bot(token=”7270981240:AAHWIaBaN_PDOQbMGaK7lEpgxvBlCqjc_HE”) admin_id = 1683941106 dp = Dispatcher() @dp.message(Command(“start”)) async def […]