Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdl-delete

A tdl extension for deleting Telegram messages.

Install

tdl extension install wazk9595/tdl-delete

Usage

Delete by message URL

tdl delete --url https://t.me/c/1234567890/42
tdl delete --url https://t.me/c/1234567890/42 --url https://t.me/c/1234567890/43

Delete from tdl chat export JSON

tdl delete --from export.json
tdl delete --from export1.json --from export2.json

Delete by chat + message ID

# Channel or supergroup (numeric ID with -100 prefix)
tdl delete --chat -1001234567890 --id 42,43,44

# By username
tdl delete --chat @mychannel --id 42

# Saved Messages
tdl delete --chat me --id 73767

Mix inputs

tdl delete --from export.json --url https://t.me/c/1234567890/99

Preview without deleting

Add --dry-run to parse the inputs and show the exact chat and message IDs that would be deleted. No delete request is sent, and the summary explicitly confirms that nothing was deleted.

tdl delete --from export.json --dry-run
tdl delete --chat me --id 73767 --dry-run

Flags

Flag Description Default
--from tdl chat export JSON file (repeatable)
--url Message URL (repeatable)
--chat Chat username, numeric ID, or me
--id Message IDs, comma-separated (used with --chat)
--revoke Delete for all users true
--dry-run Preview the exact messages without deleting false

Build from source

git clone https://github.com/wazk9595/tdl-delete.git
cd tdl-delete
go mod tidy
go build -o tdl-delete
tdl extension install --force ./tdl-delete

About

tdl的批量删除消息扩展

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages