test+release: stub auth in test_telegram_documents fixture; map @kiranvk-2011

This commit is contained in:
Teknium 2026-05-18 22:37:23 -07:00
parent 77c4675a50
commit 1d378605dd
2 changed files with 6 additions and 0 deletions

View file

@ -179,6 +179,7 @@ AUTHOR_MAP = {
"rino.alpin@gmail.com": "kunci115", # PR #27098 salvage (thread-not-found retry)
"237601532+chromalinx@users.noreply.github.com": "chromalinx", # PR #27014 salvage (commands for groups+DM)
"booker1207@gmail.com": "booker1207", # PR #25132 salvage (gate profile bots by allowed topics)
"kiranvk2011@gmail.com": "kiranvk-2011", # PR #24815 salvage (image documents → vision)
"282919977+eliteworkstation94-ai@users.noreply.github.com": "eliteworkstation94-ai", # PR #28157 salvage (group reply session splits)
"androidhtml@yandex.com": "hllqkb",
"25840394+Bongulielmi@users.noreply.github.com": "Bongulielmi",

View file

@ -134,6 +134,11 @@ def adapter():
a = TelegramAdapter(config)
# Capture events instead of processing them
a.handle_message = AsyncMock()
# After PR #28494 made the empty-allowlist callback auth fail-closed
# (and #28492 wired _is_callback_user_authorized into _should_process_message),
# document-routing tests need to bypass the new gate so messages from fake
# senders reach handle_message.
a._is_callback_user_authorized = lambda user_id, **_kw: True
return a