Telegram User Bot icon

Telegram User Bot

Send messages and manage contacts via Telegram User Bot (MTProto)

Get Dialogs

AI-generated

Summary

Retrieve a list of Telegram dialogs (chats) up to a specified limit.

Inputs

  • Limit — Maximum number of dialogs to return; defaults to 20 if not specified.

Output shape

a single JSON object containing a list of dialogs and the count of returned dialogs

The output JSON includes a 'success' flag, an array 'dialogs' with each dialog's id, name, and type flags (isUser, isGroup, isChannel), unread message count, and a total 'count' of dialogs returned.

Discussion