mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fix var
This commit is contained in:
parent
6ba7d7ed12
commit
6172729559
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ LOGGER = getLogger()
|
|||
|
||||
|
||||
@app.on_inline_query()
|
||||
async def inline_menu(_, inline_query: InlineQuery):
|
||||
async def inline_menu(self, inline_query: InlineQuery):
|
||||
if inline_query.query.strip().lower().strip() == "":
|
||||
aspymon_ver = (await shell_exec("pip freeze | grep async-pymongo"))[0]
|
||||
buttons = InlineKeyboard(row_width=2)
|
||||
|
|
|
|||
|
|
@ -200,10 +200,10 @@ async def gsearch(_, message):
|
|||
query = message.text.split(" ", maxsplit=1)[1]
|
||||
msg = await message.reply_text(f"**Googling** for `{query}` ...")
|
||||
try:
|
||||
html = await fetch.get(
|
||||
gs = await fetch.get(
|
||||
f"https://www.google.com/search?q={query}&gl=id&hl=id&num=17",
|
||||
)
|
||||
soup = BeautifulSoup(html.text, "lxml")
|
||||
soup = BeautifulSoup(gs.text, "lxml")
|
||||
|
||||
# collect data
|
||||
data = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue