Repository navigation
Releases
Releases · Maxsh/telegram-mcp
v0.1.0
First tagged release.
Added
- MCP server (stdio) exposing 12 Telegram tools:
get_recent_messages,
get_messages_multi,get_private_messages,get_channel_info,
search_messages,get_available_channels,mark_messages_read,
check_unread_messages,get_chat_status,telegram_authorize,
telegram_verify_code,telegram_logout. - Interactive authorization flow (phone code + 2FA) when no
TELEGRAM_SESSIONis set; pre-generated sessions vianpm run generate-session. offsetIdpagination with reliablehasMore/nextOffsetIdfor busy
channels, so time windows are fully covered without silent truncation (#1).resolvedblock (id,peer,title,username,type) on every
message result, andlastMessageDateto tell empty windows from
unresolvable channels (#1).- Channel id normalization:
@username, bare numeric id and-100-prefixed
id all resolve to the same channel; collectibleusernames[]supported (#1). get_messages_multi: batch fetch from up to 25 channels with per-channel
errors (#1).- Output shaping:
maxTextLength,fields,excludeMedia; media captions,
mediaType,groupedId, t.melinks andforwardedFromon messages (#1). - IANA time zone support (
tz) for date-onlysinceDateand
today/yesterdaywindows, DST-correct (#1). - Automated test suite (143 unit tests on
node:testwith a fake Telegram
client, plus a stdio smoke test). - CI on every push and pull request (Node 22/24/26) with a test + coverage
run summary, JUnit check run, Cobertura coverage summary, PR coverage
comment, raw report artifacts and README badges. - Tag-triggered release workflow publishing GitHub Releases from this changelog.
Fixed
hasMorewas reported asfalsewhen a short batch contained more
in-window messages thanlimit.senderrendered peer objects as[object Object].- A malformed
TELEGRAM_SESSIONcrashed with a raw error instead of starting
the authorization flow. - Console output suppressed so logs cannot corrupt the MCP JSON-RPC stream.
- Dynamic sessions are logged out on shutdown/disconnect.