feat(telegram): add user ID mention support via tg://user?id= links#111
Merged
frostming merged 2 commits intobubbuild:mainfrom Mar 13, 2026
Merged
Conversation
added 2 commits
March 13, 2026 08:20
When users don't have a username, we can now mention them using tg://user?id=USER_ID links in Markdown format. Changes: - Add --source-user-id and --source-display-name args to telegram_send.py - Mention format: [Display Name](tg://user?id=USER_ID) - Falls back to @username if --source-username is provided - Falls back to @username if neither user ID nor username is provided - Update SKILL.md with documentation and examples This enables precise user mentions even for users without Telegram usernames.
Fixes pre-commit end-of-file-fixer check in CI
frostming
approved these changes
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When users don't have a Telegram username, we can now mention them using
tg://user?id=USER_IDlinks in Markdown format.Changes
telegram_send.py
--source-user-idargument for specifying user ID when username is not available--source-display-nameargument for custom display name in the mention link[Display Name](tg://user?id=USER_ID)--source-user-idis provided, usetg://user?id=link mention--source-usernameis provided, use@usernamementionSKILL.md
--source-user-idoptionExample Usage
Context
This is a common scenario in Telegram where many users don't set a username. Previously, we could only mention users with
@username. Now we can mention any user by their numeric ID.