Minor improvements.

This commit is contained in:
Dr.Caduceus
2024-12-01 18:25:15 +05:30
committed by GitHub
parent 29a7ba05bb
commit e9d2cc2747

View File

@@ -14,10 +14,10 @@ def verify_user(func: Callable):
if not Telegram.ALLOWED_USER_IDS or chat_id in Telegram.ALLOWED_USER_IDS:
return await func(client, update)
elif isinstance(update, CallbackQuery):
return await update.answer(UserNotInAllowedList, show_alert=True)
return await update.answer(UserNotInAllowedListText, show_alert=True)
elif isinstance(update, Message):
return await update.reply(
text = UserNotInAllowedList,
text = UserNotInAllowedListText,
quote = True,
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton('Deploy Own', url='https://github.com/TheCaduceus/FileStreamBot')]])
)