mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
feat(export): display max message id of chat. #129
This commit is contained in:
parent
d9e8d59ed6
commit
514d7742c2
@ -74,6 +74,13 @@ func Export(ctx context.Context, opts *ExportOptions) error {
|
||||
}
|
||||
iter := builder.Iter()
|
||||
|
||||
// TODO(iyear): temp solution for calculating protected message id
|
||||
total, err := iter.Total(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
pw.Log(color.MagentaString("[DEBUG] max message id of chat: %d", total))
|
||||
|
||||
f, err := os.Create(opts.Output)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user