← 返回命令列表

Linux command

tginfo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Get info about a Telegram username

tginfo [username]

Get info from a Telegram URL

tginfo https://t.me/[username]

Display only specific attributes

tginfo [username] --attrs=title,type,subscribers

Output as JSON

tginfo [username] --json

说明

tginfo is a zero-dependency Node.js module that fetches information about a Telegram username or URL. It accepts web URLs (https://t.me/username), deep links (tg://resolve?domain=username), plain usernames, or invite codes. The output includes attributes such as type, title, webUrl, tgUrl, and optional fields like username, info, verified, image, subscribers, members, and online count depending on the entity type.

参数

--attrs=_ATTR1,ATTR2_
Display only specific attributes.
--json
Display JSON instead of a human readable view.
--help
Print help message.
--version
Display version.

FAQ

What is the tginfo command used for?

tginfo is a zero-dependency Node.js module that fetches information about a Telegram username or URL. It accepts web URLs (https://t.me/username), deep links (tg://resolve?domain=username), plain usernames, or invite codes. The output includes attributes such as type, title, webUrl, tgUrl, and optional fields like username, info, verified, image, subscribers, members, and online count depending on the entity type.

How do I run a basic tginfo example?

Run `tginfo [username]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --attrs=_ATTR1,ATTR2_ do in tginfo?

Display only specific attributes.