This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO:aiogram.event:Update id=41271717 is not handled. Duration 13 ms by bot id=7379672191 | |
ERROR:aiogram.event:Cause exception while process update id=41271717 by bot id=7379672191 | |
TypeError: command_start_handler() missing 1 required positional argument: 'dialog_manager' | |
Traceback (most recent call last): | |
File "/Users/nehz/code/AppsManagerBot/.venv/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 309, in _process_update | |
response = await self.feed_update(bot, update, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/Users/nehz/code/AppsManagerBot/.venv/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 158, in feed_update | |
response = await self.update.wrap_outer_middleware( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# commands.py | |
... | |
commands_router = Router() | |
@commands_router.message(CommandStart()) | |
@inject | |
async def command_start_handler( | |
message: Message, | |
dialog_manager: DialogManager, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import re | |
import uuid | |
from sqlalchemy import MetaData, func, DateTime, UUID, text | |
from sqlalchemy.ext.asyncio import AsyncAttrs | |
from sqlalchemy.orm import declarative_base, Mapped, mapped_column | |
POSTGRES_INDEXES_NAMING_CONVENTION = { | |
"ix": "%(column_0_label)s_idx", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
if not pIface.IsPrivateKeyReaded(): | |
pIface.ReadPrivateKeyFile(b"Key-6.dat", b"12345677", None) | |
except Exception as e: | |
dError = eval(str(e)) | |
print( | |
"Key reading failed. Error code: " + str(dError['ErrorCode']) + ". Description: " + dError['ErrorDesc'].decode( | |
"utf-8")) | |
pIface.Finalize() | |
EUUnload() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiogram.types import Update | |
from fastapi import APIRouter | |
from app.bot.bot import dp | |
from app.config import config | |
router = APIRouter() | |
def get_dispatcher(): |