fix: offset
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user