Eugene
45b74fb56c
fix(telegram): move network fallback to resolver-scoped dispatchers ( #40740 )
...
Merged via squash.
Prepared head SHA: a4456d48b4
Co-authored-by: sircrumpet <4436535+sircrumpet@users.noreply.github.com >
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com >
Reviewed-by: @obviyus
2026-03-10 11:28:51 +05:30
Marcus Castro
ba3fa44c5b
refactor: extract shared proxy-fetch utility from Telegram module
...
Move makeProxyFetch to src/infra/net/proxy-fetch.ts and add
resolveProxyFetchFromEnv which reads standard proxy env vars
(HTTPS_PROXY, HTTP_PROXY, and lowercase variants) and returns a
proxy-aware fetch via undici's EnvHttpProxyAgent. Telegram re-exports
from the shared location to avoid duplication.
2026-03-02 21:37:36 +00:00
Vincent Koc
e6049345db
fix(telegram): preserve HTTP proxy env in global dispatcher workaround ( #29940 )
...
* fix(telegram): preserve HTTP proxy env in global dispatcher workaround
* telegram: document request-scoped proxy dispatcher constraint
* telegram: assert proxy path never mutates global dispatcher
* changelog: credit telegram proxy env regression fix
---------
Co-authored-by: Rylen Anil <rylen.anil@gmail.com >
2026-03-01 13:21:01 -08:00
sebslight
6931f0fb50
refactor(telegram): avoid double-wrapping proxy fetch
2026-02-16 08:24:55 -05:00
Peter Steinberger
19ecdce275
fix: align proxy fetch typing
2026-02-04 04:09:53 -08:00
Christian Klotz
da6de49815
Telegram: use Grammy types directly, add typed Probe/Audit to plugin interface ( #8403 )
...
* Telegram: replace duplicated types with Grammy imports, add Probe/Audit generics to plugin interface
* Telegram: remove legacy forward metadata (deprecated in Bot API 7.0), simplify required-field checks
* Telegram: clean up remaining legacy references and unnecessary casts
* Telegram: keep RequestInit parameter type in proxy fetch (addresses review feedback)
* Telegram: add exhaustiveness guard to resolveForwardOrigin switch
2026-02-04 10:09:28 +00:00
spiceoogway
7150268f84
fix(telegram): use undici fetch for proxy to fix dispatcher option
...
Fixes #4038
The global fetch in Node.js doesn't support undici's dispatcher option,
which is required for ProxyAgent to work. This fix imports fetch from
undici directly to enable proper proxy support for Telegram API calls.
Root cause: makeProxyFetch() was using global fetch with { dispatcher: agent },
but Node.js's global fetch ignores the dispatcher option. Using undici.fetch
ensures the ProxyAgent dispatcher is properly respected.
Tested: Build passes, TypeScript compilation successful.
2026-01-30 14:37:47 +05:30
Peter Steinberger
0e003cb7f1
fix: normalize abort signals for telegram fetch
2026-01-21 16:46:58 +00:00
Peter Steinberger
918cbdcf03
refactor: lint cleanups and helpers
2025-12-23 00:28:55 +00:00
Peter Steinberger
dc22661744
webchat: move serving to relay loopback and tunnel from mac app
2025-12-08 11:54:30 +01:00
Peter Steinberger
22ed7ea3f2
build: silence grammy type errors for mac packaging
2025-12-08 11:04:17 +01:00
Peter Steinberger
f65702a8a8
chore(ci): fix lint and swiftformat failures
2025-12-08 01:48:53 +01:00
Peter Steinberger
4d3d9cca2a
Add Bun bundle docs and Telegram grammY support
2025-12-07 22:47:05 +01:00