29 lines
844 B
Python
29 lines
844 B
Python
from aiogram import Bot
|
|
from aiogram.filters import CommandObject
|
|
from aiogram.types import Message as Message, User, Chat
|
|
from sqlalchemy.ext.asyncio import async_sessionmaker
|
|
|
|
from bozenka.instances.telegram.utils.keyboards import delete_keyboard
|
|
|
|
|
|
async def hi(msg: Message):
|
|
"""
|
|
Test command, sending welcome message.
|
|
Made for testing bot working status.
|
|
:param msg:
|
|
:return:
|
|
"""
|
|
await msg.answer(
|
|
f"Привет, {msg.from_user.mention_html('')} 👋",
|
|
reply_markup=delete_keyboard(msg.from_user.id)
|
|
)
|
|
|
|
|
|
async def testing(msg: Message, session_maker: async_sessionmaker, command: CommandObject, user: User, target: User, chat: Chat, bot: Bot):
|
|
print(user.full_name)
|
|
print(target.full_name)
|
|
print(msg)
|
|
print(command.args)
|
|
print(command.mention)
|
|
print(command.command)
|