Skip to content

fix(watch,wait): accept me/self and id: peer filters - #287

Open
ApexAiOfficial wants to merge 1 commit into
gotd:mainfrom
ApexAiOfficial:up/self-peer-filters
Open

ApexAiOfficial wants to merge 1 commit into
gotd:mainfrom
ApexAiOfficial:up/self-peer-filters

Conversation

@ApexAiOfficial

Copy link
Copy Markdown

watch and wait passed their peer argument straight to the username resolver,
so tg wait me / tg watch me failed with USERNAME_INVALID, and the id:
form documented for every never worked as a filter. Resolve the filter
like other peer arguments: me/self via the current user, id: from the peer
cache, anything else as before.

🤖 Generated with Claude Code

watch and wait passed their peer argument straight to the username resolver,
so `tg wait me` / `tg watch me` failed with USERNAME_INVALID, and the id:<n>
form documented for every <peer> never worked as a filter. Resolve the filter
like other peer arguments: me/self via the current user, id:<n> from the peer
cache, anything else as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant