Skip to content

Commit

Permalink
Minor Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD authored Jun 15, 2023
1 parent 5c09799 commit e536948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/modules/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ async def pics_callback(_, query):
if DATABASE_URL:
await DbManger().update_config({'IMAGES': config_dict['IMAGES']})
await query.answer("All Images Successfully Deleted", show_alert=True)
await query.message.delete()
await sendMessage(f"<b>No Images to Show !</b> Add by /{BotCommands.AddImageCommand}")
await sendMessage(message, "<b>No Images to Show !</b> Add by /{BotCommands.AddImageCommand}")
await message.delete()
else:
await query.answer()
await query.message.delete()
await query.message.reply_to_message.delete()
await message.delete()
await message.reply_to_message.delete()


bot.add_handler(MessageHandler(picture_add, filters=command(BotCommands.AddImageCommand) & CustomFilters.authorized))
Expand Down

0 comments on commit e536948

Please sign in to comment.