v2.2.1 hotfix: fix telemt download grep pattern (grep -iE), add QR cleanup, bump version to 2.2.1

This commit is contained in:
anten-ka
2026-04-06 21:30:30 +03:00
parent 55134f4864
commit 13cca51f5f
3 changed files with 2163 additions and 2158 deletions

View File

@@ -787,6 +787,11 @@ async def cb_menu_share(update: Update, context: ContextTypes.DEFAULT_TYPE) -> N
f"<b>🔗 Proxy Link</b>\n\n<code>{html.escape(link)}</code>",
parse_mode="HTML",
)
finally:
try:
os.remove(qr_file)
except OSError:
pass
else:
await safe_edit_message(query,
f"<b>🔗 Proxy Link</b>\n\n<code>{html.escape(link)}</code>",

View File

@@ -3,7 +3,7 @@
# Цвета, логирование, спиннер, системные функции, совместимость с v1
# ── Версия ────────────────────────────────────────────────────────────────────
GOTELEGRAM_VERSION="2.2.0"
GOTELEGRAM_VERSION="2.2.1"
GOTELEGRAM_NAME="GoTelegram"
# ── Пути ──────────────────────────────────────────────────────────────────────

View File

@@ -27,13 +27,13 @@ get_telemt_download_url() {
local pattern
case "$arch" in
amd64) pattern="linux.*amd64\|linux.*x86_64" ;;
arm64) pattern="linux.*arm64\|linux.*aarch64" ;;
armv7) pattern="linux.*armv7\|linux.*arm" ;;
amd64) pattern="linux.*(amd64|x86_64)" ;;
arm64) pattern="linux.*(arm64|aarch64)" ;;
armv7) pattern="linux.*(armv7|arm)" ;;
*) pattern="linux.*${arch}" ;;
esac
echo "$resp" | jq -r ".assets[].browser_download_url" 2>/dev/null | grep -i "$pattern" | head -1
echo "$resp" | jq -r ".assets[].browser_download_url" 2>/dev/null | grep -iE "$pattern" | head -1
}
# ── Установленная версия ─────────────────────────────────────────────────────