resolve_username
Resolve a username to a Telegram entity
How to use it
resolve_username is exposed by the Tgmcp MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the resolve_username tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Tgmcp
pip install tgmcpOther tools in Tgmcp (39)
Add new contacts to your Telegram account
Archive a chat
Block users from contacting you
Delete contacts from your account
Delete messages
Edit a previously sent message
Export a chat invite link
Export all contacts to a structured format
Forward a message to another chat
Get a list of blocked users
Information about a specific chat
List available chats with pagination
Get chats with specific contacts
Get contact IDs for specific contacts
Find a direct chat with a specific contact
Get chat history with customizable filters
Get the invite link for a group or channel
Get last interaction with a contact
Get context around a specific message
Get paginated messages from a specific chat
Get all pinned messages in a chat
Import a chat invite by hash
Import multiple contacts at once
Join a chat by invite link
Detailed metadata for users, groups, and channels
View all contacts in your Telegram account
List messages with detailed information
Mark messages as read
Mute notifications for a chat
Pin a message in a chat
Reply to a specific message
Find contacts by name, username, or phone
Search for messages in a chat
Search for public chats
Send text messages to any chat
Unarchive a chat
Unblock previously blocked users
Unmute notifications for a chat
Unpin a message from a chat