mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
fix reply markup forever
This commit is contained in:
3
bot.py
3
bot.py
@@ -75,8 +75,9 @@ def send_link(message):
|
||||
# saved dict_r
|
||||
bunch_upsert(dict_r)
|
||||
|
||||
markup = types.InlineKeyboardMarkup()
|
||||
for i in range(0, len(list_r), 20):
|
||||
logging.info("I'm sending you links now😉")
|
||||
markup = types.InlineKeyboardMarkup()
|
||||
part = list_r[i:i + 20]
|
||||
for item in part:
|
||||
btn = types.InlineKeyboardButton(item['name'], callback_data=item['id'])
|
||||
|
||||
@@ -21,7 +21,7 @@ def get_html(kw: str) -> list:
|
||||
logging.info('Requesting %s' % url)
|
||||
r = s.get(url)
|
||||
# status code is always 200
|
||||
if '一共0条内容' not in r.text:
|
||||
if 'data-cat' in r.text:
|
||||
contents.append(r.text)
|
||||
else:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user