I add command /id and /dowmp3 for dowload video with Youtube and i improve code.
It's version 0.2.0
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from logging import getLogger
|
||||
from aiogram import Dispatcher, Bot
|
||||
from aiogram.types import Message
|
||||
from aiogram.filters import Command
|
||||
from models.state import BotState
|
||||
|
||||
logger = getLogger(__name__)
|
||||
|
||||
def register_handlers(dp: Dispatcher, state: BotState, bot: Bot):
|
||||
@dp.message(Command("id"))
|
||||
async def id(message: Message):
|
||||
id = message.from_user.id
|
||||
await message.reply(str(id))
|
||||
Reference in New Issue
Block a user