Skip to content

Commit

Permalink
fixed✅️
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMKN committed Jun 20, 2023
1 parent af3bd79 commit 01d932e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from aiohttp import web

# Get logging configurations
#logging.config.fileConfig("logging.conf")
#logging.getLogger().setLevel(logging.INFO)
#logging.getLogger("cinemagoer").setLevel(logging.ERROR)
logging.config.fileConfig("logging.conf")
logging.getLogger().setLevel(logging.INFO)
logging.getLogger("cinemagoer").setLevel(logging.ERROR)

LOGGER = logging.getLogger(__name__)
TIMEZONE = (os.environ.get("TIMEZONE", "Asia/Kolkata"))
Expand Down
4 changes: 2 additions & 2 deletions plugins/group_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def g_fil_mod(client, message):
await m.edit("𝚄𝚂𝙴 :- `/g_filter on` 𝙾𝚁 `/g_filter off`")


@Client.on_callback_query(filters.regex("next"))
@Client.on_callback_query(filters.create(lambda _, __, query: query.data.startswith("next")))
async def next_page(bot, query):
ident, req, key, offset = query.data.split("_")
if int(req) not in [query.from_user.id, 0]:
Expand Down Expand Up @@ -142,7 +142,7 @@ async def next_page(bot, query):
await query.answer()


@Client.on_callback_query(filters.regex("spolling"))
@Client.on_callback_query(filters.create(lambda _, __, query: query.data.startswith("spolling")))
async def advantage_spoll_choker(bot, query):
_, user, movie_ = query.data.split('#')
if int(user) != 0 and query.from_user.id != int(user):
Expand Down
11 changes: 3 additions & 8 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ async def pm_next_page(bot, query):
except:
offset = 0

#search = temp.PM_BUTTONS.get(str(key))
#if not search:
try:
search = query.message.reply_to_message.text
except Exception as e:
print(e)
return
# return await query.answer("You are using one of my old messages, please send the request again.", show_alert=True)
search = temp.PM_BUTTONS.get(str(key))
if not search:
return await query.answer("You are using one of my old messages, please send the request again.", show_alert=True)

files, n_offset, total = await get_search_results(search.lower(), offset=offset, filter=True)
try:
Expand Down

0 comments on commit 01d932e

Please sign in to comment.