Telegram MCP Server

ListMessages

List messages in a given dialog, chat or channel. The messages are listed in order from newest to oldest. If `unread` is set to `True`, only unread messages will be listed. Once a message is read, it will not be listed again. If `limit` is set, only the last `limit` messages will be listed. If `unread` is set, the limit will be the minimum between the unread messages and the limit.

Input Schema

NameRequiredDescriptionDefault
dialog_idYes
limitNo
unreadNo

Input Schema (JSON Schema)

{ "description": "List messages in a given dialog, chat or channel. The messages are listed in order from newest to oldest.\n\nIf `unread` is set to `True`, only unread messages will be listed. Once a message is read, it will not be\nlisted again.\n\nIf `limit` is set, only the last `limit` messages will be listed. If `unread` is set, the limit will be\nthe minimum between the unread messages and the limit.", "properties": { "dialog_id": { "title": "Dialog Id", "type": "integer" }, "limit": { "default": 100, "title": "Limit", "type": "integer" }, "unread": { "default": false, "title": "Unread", "type": "boolean" } }, "required": [ "dialog_id" ], "title": "ListMessages", "type": "object" }

You must be authenticated.

Other Tools