Skip to content

Commit dfc12ec

Browse files
committed
style: apply black formatting to messages.py
1 parent 85a8f39 commit dfc12ec

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

telegram_mcp/tools/messages.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,7 @@ async def forward_message(
738738
{
739739
m.id
740740
for m in neighbors
741-
if m is not None
742-
and getattr(m, "grouped_id", None) == grouped_id
741+
if m is not None and getattr(m, "grouped_id", None) == grouped_id
743742
}
744743
)
745744
if len(sibling_ids) > 1:
@@ -807,10 +806,7 @@ async def forward_messages(
807806
from_entity = await resolve_entity(from_chat_id, cl)
808807
to_entity = await resolve_entity(to_chat_id, cl)
809808
await cl.forward_messages(to_entity, list(message_ids), from_entity)
810-
return (
811-
f"{len(message_ids)} messages forwarded from "
812-
f"{from_chat_id} to {to_chat_id}."
813-
)
809+
return f"{len(message_ids)} messages forwarded from " f"{from_chat_id} to {to_chat_id}."
814810
except Exception as e:
815811
return log_and_format_error(
816812
"forward_messages",

0 commit comments

Comments
 (0)