This commit is contained in:
yasir 2023-01-09 13:18:17 +07:00
parent 2aabcda87b
commit 6b44f0228a

View file

@ -14,7 +14,7 @@ from pyrogram import filters
from misskaty import app, BOT_USERNAME
from misskaty.vars import COMMAND_HANDLER
from misskaty.core.decorator.errors import capture_err
from misskaty.helper.tools import GENRES_EMOJI
from misskaty.helper.tools import GENRES_EMOJI, get_random_string
from misskaty.helper.http import http
LOGGER = logging.getLogger(__name__)
@ -32,7 +32,7 @@ async def imdb_choose(_, m):
if m.sender_chat:
return await m.reply("This feature not supported for channel..")
buttons = InlineKeyboard(row_width=2)
ranval = ranword(4)
ranval = get_random_string()(4)
LIST_CARI[ranval] = m.text.split(None, 1)[1]
buttons.add(
InlineButton("🇺🇸 English", f"imdbcari_en#{ranval}#{m.from_user.id}"),