𝓶
Size: a a a
𝓶
𝐃𝐊
@dp.errors_handler()
async def hellsingir(update: types.Update, error: Exception):
errorsname = Exception
await TOKEN2.send_message(message.from_user.id, f"Название класса ошибки: {errorsname}")
𝐃𝐊
errorsname = Exception
Зачем?
𝓶
AR
@dp.errors_handler()
async def hellsingir(update: types.Update, error: Exception):
errorsname = Exception
await TOKEN2.send_message(message.from_user.id, f"Название класса ошибки: {errorsname}")
errorsname = error.__class__.__name__
if update.message:
await update.message.answer(...)
elif update.<another event>:
await update.<another event>.answer(...)
𝐃𝐊
errorsname = error.__class__.__name__
if update.message:
await update.message.answer(...)
elif update.<another event>:
await update.<another event>.answer(...)
AR
<Ч
𝓶
𝐃𝐊
𝐃𝐊
𝐃𝐊
𝐃𝐊
𝐃𝐊
S
S
𝐃𝐊