You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(forward_message): auto-expand albums on single-int forwards
Smaller MCP-client models reliably fail to check grouped_id before
forwarding and end up calling forward_message with the album anchor id
only — delivering one detached photo instead of the full post. Skill
prompts and tool-description directives don't move the needle on this.
Move the smarts server-side: when forward_message receives a single
int and the target message has a grouped_id, fetch a small window of
nearby ids (albums are allocated contiguously), filter siblings with
the same grouped_id, and forward them all in one Telethon call. The
destination receives the full grouped album intact.
Adds expand_album: bool = True so callers can opt out for the rare
case of forwarding exactly one item out of an album. List inputs are
left untouched — they remain the explicit batch path.
Net effect: the agent can be naive ("forward this post") and the
server still delivers the album correctly. Result message now states
when an expansion happened so the user is aware.
0 commit comments