Skip to content

Commit

Permalink
Update auto_filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MRK-YT authored Jun 5, 2021
1 parent f62bfb4 commit 2f6938f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bot/plugins/auto_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def auto_filter(bot, update):
file_size = "" if file_size == ("[0 B]") else file_size

# add emoji down below inside " " if you want..
button_text = f"{file_size}{file_name}"
button_text = f"📁 {file_name}"


if file_type == "video":
Expand Down Expand Up @@ -121,7 +121,8 @@ async def auto_filter(bot, update):

results.append(
[
InlineKeyboardButton(button_text, url=file_link)
InlineKeyboardButton(button_text, url=file_link),
InlineKeyboardButton(file_size, callback_data="ignore"),
]
)

Expand Down

0 comments on commit 2f6938f

Please sign in to comment.