ai_bot / server.py

Commit History

fix: general greeting, LLM detects off-topic → operator transfer
f010f62

gloomy_pooplar commited on

feat: transfer to operator via imopenlines.bot.session.operator
9b41c77

gloomy_pooplar commited on

fix: pass CLIENT_ID as query param with webhook URL
4ad3240

gloomy_pooplar commited on

fix: try form-encoded auth, fallback to webhook URl
f543d5a

gloomy_pooplar commited on

fix: use auth from incoming webhook (application_token) for replies
3aab6ab

gloomy_pooplar commited on

fix: try im.message.add first, fallback to imbot.message.add
9a735ce

gloomy_pooplar commited on

fix: BOT_ID lookup in correct section
0cf5a9a

gloomy_pooplar commited on

fix: send reply after process_message
16d31df

gloomy_pooplar commited on

fix: auto-detect BOT_ID from webhook, improved logging
2d6b64e

gloomy_pooplar commited on

fix: remove stale import send_bitrix_message from server.py
30342e3

gloomy_pooplar commited on

fix: parse URL-encoded form data from Bitrix outgoing webhooks
f9beea3

gloomy_pooplar commited on

debug: log all POST requests with body
4f9ab86

gloomy_pooplar commited on

feat: Bitrix24 webhook вместо Telegram polling
e584a93

gloomy_pooplar commited on

fix: TLS 1.2 + round-robin Telegram IPs + client recreation on error
052c72b

gloomy_pooplar commited on

fix: bypass HF DNS block - resolve api.telegram.org via Google DNS
3715360

gloomy_pooplar commited on

restore: exact code from b4a1c1a (search_debug + httpx polling)
76c7e2d

gloomy_pooplar commited on

restore: exact working code from 1dbfd30 (httpx, no requests, no ssl hacks)
1278a44

gloomy_pooplar commited on

fix: configure_http_backend + requests.Session (from forum solution)
bd6ae08

gloomy_pooplar commited on

restore: rollback to working commit 1dbfd30 (httpx polling, long poll)
4b8ed59

gloomy_pooplar commited on

fix: back to polling + requests (webhook broken on HF Spaces)
c8561d4

gloomy_pooplar commited on

feat: test_tokens.py + TLS 1.2, _ssl_handshake_timeout, infinite webhook retry
d1118df

gloomy_pooplar commited on

fix: shared Telegram API client (reuse connection, avoid re-handshake)
eb2214b

gloomy_pooplar commited on

fix: webhook setup via sync httpx with retries, log Python version
41349e3

gloomy_pooplar commited on

fix: webhook (aiohttp) + Python 3.12.9-slim (SSL bug fixed)
6f79408

gloomy_pooplar commited on

fix: restore working sync httpx polling (webhook broken on HF)
86ba7ff

gloomy_pooplar commited on

fix: httpx_kwargs={'verify': False} instead of client/http_session
ef5bb19

gloomy_pooplar commited on

fix: deduplicate create_telegram_app, add verify=False + http_session, require SPACE_NAME
87b575f

gloomy_pooplar commited on

fix: remove custom httpx client, use default PTB
0bb6101

gloomy_pooplar commited on

fix: Application.builder().http_session() not HTTPXRequest
142f273

gloomy_pooplar commited on

fix: HTTPXRequest(http_session=...) not client
752a354

gloomy_pooplar commited on

fix: remove aiogram, add dotenv + entry point to server.py
08258dc

gloomy_pooplar commited on

user: server.py rewrite (python-telegram-bot + webhook)
0b2001a

gloomy_pooplar commited on

feat: search_debug(), RAG details in web logs
b4a1c1a

gloomy_pooplar commited on

feat: web log viewer at /logs, last 50 interactions
421cf0f

gloomy_pooplar commited on

fix: suppress httpx logging (token leak)
f364e5f

gloomy_pooplar commited on

rewrite: sync httpx polling, no aiogram/aiohttp
62664f6

gloomy_pooplar commited on

fix: use asyncio.run + start_polling, full traceback
e54f00a

gloomy_pooplar commited on

fix: bot in main thread, health in daemon
c3f8858

gloomy_pooplar commited on

fix: custom SSL context TLS 1.2, TCP diagnostics
06d1e01

gloomy_pooplar commited on

fix: network diagnostics + ca-certificates
1536d0f

gloomy_pooplar commited on

fix: retry bot on SSL timeout, custom aiohttp session with longer timeouts
8c8bded

gloomy_pooplar commited on

fix: bot in main thread (needed for aiogram signal handlers), health server in thread
2b73540

gloomy_pooplar commited on

fix: move health server to main thread, bot to daemon thread for Render
27facb5

gloomy_pooplar commited on

add health server for Render
88a1002

gloomy_pooplar commited on

initial: ORTOS Telegram Bot v2
b414ebf

gloomy_pooplar commited on