feat(gateway): stream Telegram edits safely

This commit is contained in:
Nikita Nosov 2026-05-08 11:52:24 +00:00 committed by kshitij
parent cca2869d78
commit 1ac8deb3ca
3 changed files with 50 additions and 0 deletions

View file

@ -1515,6 +1515,14 @@ class TelegramAdapter(BasePlatformAdapter):
if not self._bot:
return SendResult(success=False, error="Not connected")
try:
if not finalize:
await self._bot.edit_message_text(
chat_id=int(chat_id),
message_id=int(message_id),
text=content,
)
return SendResult(success=True, message_id=message_id)
formatted = self.format_message(content)
try:
await self._bot.edit_message_text(