Skip to content

Commit

Permalink
2.1.1 - fix menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
ziwork committed Mar 4, 2023
1 parent c248dce commit 5b6c58e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Данный бот предназначен для управления обхода блокировок на роутерах Keenetic
# Демо-бот: https://t.me/keenetic_dns_bot
#
# Файл: bot.py, Версия 2.1.0, последнее изменение: 04.03.2023, 20:09
# Файл: bot.py, Версия 2.1.1, последнее изменение: 04.03.2023, 23:56
# Доработал: NetworK (https://github.com/ziwork)

import asyncio
Expand All @@ -23,7 +23,7 @@
import json
import bot_config as config

# ВЕРСИЯ БОТА 2.1.0
# ВЕРСИЯ БОТА 2.1.1

# ЕСЛИ ВЫ ХОТИТЕ ПОДДЕРЖАТЬ РАЗРАБОТЧИКА - МОЖЕТЕ ОТПРАВИТЬ ДОНАТ НА ЛЮБУЮ СУММУ
# 2204 1201 0098 8217 КАРТА МИР
Expand Down Expand Up @@ -543,8 +543,12 @@ def bot_message(message):
dirname = '/opt/etc/unblock/'
dirfiles = os.listdir(dirname)
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
markuplist = []
for fln in dirfiles:
markup.add(fln.replace(".txt", ""))
# markup.add(fln.replace(".txt", ""))
btn = fln.replace(".txt", "")
markuplist.append(btn)
markup.add(*markuplist)
back = types.KeyboardButton("Назад")
markup.add(back)
bot.send_message(message.chat.id, "Списки обхода", reply_markup=markup)
Expand Down

0 comments on commit 5b6c58e

Please sign in to comment.