Typo hehehe

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-11-23 17:30:50 +07:00 committed by GitHub
parent 20851f6d8f
commit 3e850b2b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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