Skip to content

Commit

Permalink
Some Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahsad-kp committed Jun 11, 2021
1 parent e64bb98 commit 71b8fd1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion InlineBot/plugins/base_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
]
]

about_keyboard_c = [
[
InlineKeyboardButton(text = 'Close 🔒', callback_data = 'close')
]
]

markdown_keyboard = [
[
InlineKeyboardButton(text = '🔙 Back', callback_data = 'help')
Expand Down Expand Up @@ -78,10 +84,15 @@ async def help_msg(client: CodeXBotz, message: Message):

@CodeXBotz.on_message(filters.command('about') & filters.private)
async def about_msg(client: CodeXBotz, message: Message):
user_id = message.from_user.id
if user_id in ADMINS:
reply_markup = InlineKeyboardMarkup(about_keyboard)
else:
reply_markup = InlineKeyboardMarkup(about_keyboard_c)
await message.reply(
text = ABOUT_MESSAGE,
quote = True,
reply_markup = InlineKeyboardMarkup(about_keyboard),
reply_markup = reply_markup,
disable_web_page_preview = True
)

Expand Down
2 changes: 1 addition & 1 deletion InlineBot/plugins/import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
async def export_data(client: CodeXBotz, message: Message):
sts_msg = await message.reply('<i>Please Wait..!</i>')

if await count_filters(user_id) == 0:
if await count_filters() == 0:
await sts_msg.edit('You have no filters to Export')
return
data = await get_data()
Expand Down

0 comments on commit 71b8fd1

Please sign in to comment.