mirror of
https://github.com/TheCaduceus/FileStreamBot.git
synced 2026-01-15 16:33:25 -03:00
Minor improvements.
This commit is contained in:
@@ -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')]])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user