mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-17 04:15:05 +00:00
fix(telegram): default draft_transport to false to prevent reply-deleted artifacts
sendMessageDraft causes "reply to deleted message" artifacts on some Telegram clients (tdesktop#10315). Disable by default so content streaming uses message transport (same as reasoning stream).
This commit is contained in:
1 parent
baa4bb6d45
commit
1b876231a1
1 file changed
+3
-3
@@ -203,11 +203,11 @@ func (c *Channel) StreamEnabled(isGroup bool) bool {
|
||||
}
|
||||
|
||||
// draftTransportEnabled returns whether sendMessageDraft should be used for DM streaming.
|
||||
// Default: true (enabled). Uses stealth preview with no per-edit notifications.
|
||||
// Note: may cause "reply to deleted message" artifacts on some Telegram clients (tdesktop#10315).
|
||||
// Default: false (disabled). When enabled, uses stealth preview with no per-edit notifications,
|
||||
// but may cause "reply to deleted message" artifacts on some Telegram clients (tdesktop#10315).
|
||||
func (c *Channel) draftTransportEnabled() bool {
|
||||
if c.config.DraftTransport == nil {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
return *c.config.DraftTransport
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user