HTTP /say: send the verbatim quote silently (no notification) #79
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Request
The HTTP
/api/telegram/sayendpoint posts the injected text verbatim as a blockquote "for posterity" viaecho_verbatim(src/telegram/mod.rs:1113, impl atsrc/telegram/mod.rs:1170). This send currently triggers a Telegram notification.The quote is a bookkeeping echo, not a message the admin needs to be pinged about (pi's actual reply that streams in-thread afterward is the notifiable content). Send the quote with
disable_notification(true)so it arrives silently.Scope
echo_verbatimquote should go silent. The subsequent streamed reply keeps its normal notification behavior.echo_verbatimbuilds asend_messagecall atsrc/telegram/mod.rs:1173-1177; add the silent flag there (confirm theSendMessagebuilder insrc/telegram/view.rsexposesdisable_notification, extend it if not).