feat: add message limit option for Telegram channels and update progress display

This commit is contained in:
Sarto
2026-03-26 01:51:00 +03:30
parent 0e9a12beac
commit 3aa7dc3244
6 changed files with 28 additions and 12 deletions
+2
View File
@@ -31,6 +31,7 @@ func main() {
loginOnly := flag.Bool("login-only", false, "Authenticate to Telegram, save session, and exit")
sessionPath := flag.String("session", "", "Path to Telegram session file (default: {data-dir}/session.json)")
maxPadding := flag.Int("padding", 32, "Max random padding bytes in DNS responses (anti-DPI, 0=disabled)")
msgLimit := flag.Int("msg-limit", 15, "Maximum messages to fetch per Telegram channel")
showVersion := flag.Bool("version", false, "Show version and exit")
flag.Parse()
@@ -107,6 +108,7 @@ func main() {
Passphrase: *key,
ChannelsFile: *channelsFile,
MaxPadding: *maxPadding,
MsgLimit: *msgLimit,
Telegram: server.TelegramConfig{
APIID: id,
APIHash: *apiHash,