fix: offset

This commit is contained in:
Rogee
2024-09-04 18:57:58 +08:00
parent c34547a3f1
commit e6d808934d
4 changed files with 19 additions and 32 deletions

View File

@@ -13,7 +13,6 @@ import (
var (
channelID int64
modeHistory bool
channelAlias string
)
@@ -30,7 +29,6 @@ func ExportCmd() *cobra.Command {
}
cmd.Flags().Int64Var(&channelID, "channel", 0, "channel id")
cmd.Flags().BoolVar(&modeHistory, "history", false, "history mode")
cmd.Flags().StringVar(&channelAlias, "alias", "", "channel alias")
return cmd
@@ -66,7 +64,7 @@ func exportCmd(ctx context.Context) error {
// https://t.me/yunpanshare/37426
for {
if err := client.Channel(ctx, channel, cfg, modeHistory); err != nil {
if err := client.Channel(ctx, channel, cfg); err != nil {
return err
}
}