Skip to content

feat(telegram): allow overriding schema layer in initConnection - #1827

Merged
ernado merged 1 commit into
gotd:mainfrom
patrickbuck1990:feat/configurable-layer
Jul 20, 2026
Merged

feat(telegram): allow overriding schema layer in initConnection#1827
ernado merged 1 commit into
gotd:mainfrom
patrickbuck1990:feat/configurable-layer

Conversation

@patrickbuck1990

Copy link
Copy Markdown
Contributor

Add Options.Layer to configure the layer sent in invokeWithLayer instead of always using the tg.Layer constant.

The layer is threaded through Client and manager.ConnOptions down to Conn, covering the regular init flow, regular invokes and both CDN wrapped paths. Defaults to tg.Layer when unset, so behavior is unchanged for existing users.

Add Options.Layer to configure the layer sent in invokeWithLayer instead
of always using the tg.Layer constant.

The layer is threaded through Client and manager.ConnOptions down to
Conn, covering the regular init flow, regular invokes and both CDN
wrapped paths. Defaults to tg.Layer when unset, so behavior is unchanged
for existing users.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.39%. Comparing base (e7d5e78) to head (ede0407).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1827      +/-   ##
==========================================
- Coverage   71.42%   71.39%   -0.03%     
==========================================
  Files         509      509              
  Lines       24129    24137       +8     
==========================================
  Hits        17233    17233              
- Misses       5650     5656       +6     
- Partials     1246     1248       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ernado
ernado merged commit 094dc58 into gotd:main Jul 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants