mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-08 17:20:22 +08:00
fix: simplify message typing lifecycle
This commit is contained in:
@@ -585,14 +585,12 @@ class TelegramModule(_ModuleBase, _MessageBase[Telegram]):
|
||||
continue
|
||||
client: Telegram = self.get_instance(conf.name)
|
||||
if client:
|
||||
stop_typing = not (metadata or {}).get("agent_managed_typing")
|
||||
result = client.edit_msg(
|
||||
chat_id=chat_id,
|
||||
message_id=message_id,
|
||||
text=text,
|
||||
title=title,
|
||||
buttons=buttons,
|
||||
stop_typing=stop_typing,
|
||||
)
|
||||
if result:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user