Skip to content

Fix via @bot not shown for inline bot messages in private chats#1387

Open
ettyxne wants to merge 1 commit into
overtake:masterfrom
ettyxne:fix/via-bot
Open

Fix via @bot not shown for inline bot messages in private chats#1387
ettyxne wants to merge 1 commit into
overtake:masterfrom
ettyxne:fix/via-bot

Conversation

@ettyxne
Copy link
Copy Markdown

@ettyxne ettyxne commented May 12, 2026

When you send a message via an inline bot in a private chat, the "via @botName" attribution doesn't appear.

Root cause: The author/via-bot header block is gated on fillName, which is false for outgoing messages in private chats (no author name is needed there). The via @bot line is rendered inside the same block, so it gets skipped.

Fix: Also enter the block when message.hasInlineAttribute is true, regardless of fillName.

The author/via-bot header block is gated on fillName, which is false
for outgoing messages in private chats (no need to show the author
name). But the via @bot attribution is rendered inside the same block,
so it gets skipped too.

Fix: also enter the block when the message has an inline bot attribute,
regardless of fillName.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 12, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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