Skip to content

About

Lightweight and powerful Telegram Userbot, based on gotd. | 基于 gotd 构建,轻量而卓越的的 Telegram 人形自走机器人

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

PaperValet

A Telegram userbot in pure Go, built on gotd/td.

English · 中文

Install

curl -fsSL https://raw.githubusercontent.com/PaperValet/PaperValet/master/scripts/install.sh | bash
papervalet initialize

initialize walks you through language, API credentials, login, a companion bot and an optional systemd service. Get api_id / api_hash at my.telegram.org and a bot token from @BotFather. Then send .ping in any chat.

Docker, upgrades and troubleshooting: Installation.

Commands

Everything is triggered by your own messages. .help lists all commands, .help <command> explains one.

Settings are not commands. Language, prefixes, sudo, log level and every plugin's options live in the companion bot: send it /menu and tap. It has three panels: system settings, external plugin settings, and a plugin manager that installs, removes and reloads plugins from the repository.

Plugin Command What it does
ping .ping [host], .pingdc Latency to Telegram, a host, or every DC
status .status Version, host, resources, runtime
info .info User, chat and message details
dc .dc [@user|ID] Data center of a user, group or channel
re .re [count] [times] Repeat the replied message
dme .dme <n|all> [-f] Delete your recent messages
exec .exec <cmd> Run a shell command
apt .apt s / i / rm / ls / info Install and remove external plugins
reload .reload Reload external plugins
restart .restart Restart in place
update .update [now|-f] Upgrade from GitHub Releases
backup .backup [restore] Back up config to Saved Messages
sudo .sudo add / remove Let other users run commands
alias .alias name=command Your own shortcuts
log .sendlog [tail|clean] Log files

Plugins

External plugins come from PaperValet-Plugins:

.apt s           browse
.apt i weather   install one
.apt i -all      install everything

Reply to a plugin .so file with .apt i (or send it to the companion bot) to install straight from the file; it lands under the plugin's own module name.

To write one, see the Plugin SDK.

Development

make build     # ./papervalet
make test
make lint

Go 1.25. External plugins must be built with the same Go version and -trimpath as the binary.

License

MIT

About

Lightweight and powerful Telegram Userbot, based on gotd. | 基于 gotd 构建,轻量而卓越的的 Telegram 人形自走机器人

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages