import asyncio
import logging
from aiogram import Bot, Dispatcher, types
from aiogram.filters.command import Command
from cryptography.fernet import Fernet
import random

from aiogram import F

logging.basicConfig(level=logging.INFO)
bot = Bot(token="8523164827:AAHy3YyJU7d_pKnNi4bEl3g_bvCoY8AqHB0")
dp = Dispatcher()

chislo = 0
umnozhenie = 0
itog = 0
@dp.message(Command("start"))
async def cmd_start(message: types.Message):
    await message.answer(f"Привет, {message.from_user.full_name}! Я - бот Волк. Я могу зашифровать  или сгенирировать число.")

@dp.message(Command("help"))
async def cmd_help(message: types.Message):
    await message.answer("Это бот Волк-000. Команды: /start /help /random /shifr.")

@dp.message(Command("shifr"))
async def cmd_help(message: types.Message):
    await message.answer("Введите текст для шифрования")
    text = message.text

@dp.message(Command("random"))
async def cmd_help(message: types.Message):
    global chislo
    global umnozhenie
    global itog
    chislo = random.randint(0, 4561745947593195735384)
    umnozhenie = random.randint(0, 46547)
    itog = str(chislo * umnozhenie)
    await message.answer(itog)

async def main():
    await dp.start_polling(bot)

if __name__ == "__main__":
    asyncio.run(main())