Skip to content

Commit

Permalink
Typo hehehe
Browse files Browse the repository at this point in the history
Signed-off-by: Yasir Aris M <[email protected]>
  • Loading branch information
yasirarism authored Nov 23, 2023
1 parent 20851f6 commit 3e850b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions misskaty/plugins/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@

__MODULE__ = "Filters"
__HELP__ = """/filters To Get All The Filters In The Chat.
/filter [FILTER_NAME] To Save A Filter(reply to a message).
/filter [FILTER_NAME] or /addfilter [FILTER_NAME] To Save A Filter(reply to a message).
Supported filter types are Text, Animation, Photo, Document, Video, video notes, Audio, Voice.
To use more words in a filter use.
`/filter Hey_there` To filter "Hey there".
/stop [FILTER_NAME] To Stop A Filter.
`/filter Hey_there` or `/addfilter Hey_there` To filter "Hey there".
/stop [FILTER_NAME] or /stopfilter [FILTER_NAME] To Stop A Filter.
/stopall To delete all the filters in a chat (permanently).
You can use markdown or html to save text too.
Expand Down Expand Up @@ -161,7 +161,7 @@ async def del_filter(_, m):
)
async def filters_re(_, message):
text = message.text.lower().strip()
if not text or (m.command and m.command[0].lower() in ["filter", "addfilter"]):
if not text or (message.command and message.command[0].lower() in ["filter", "addfilter"]):
return
chat_id = message.chat.id
list_of_filters = await get_filters_names(chat_id)
Expand Down Expand Up @@ -269,4 +269,4 @@ async def stop_all_cb(_, cb):
return await cb.message.edit("**Successfully deleted all filters on this chat.**")
if input == "no":
await cb.message.reply_to_message.delete()
await cb.message.delete()
await cb.message.delete()

0 comments on commit 3e850b2

Please sign in to comment.