feat(export): display max message id of chat. #129

This commit is contained in:
iyear 2023-03-18 00:00:57 +08:00
parent d9e8d59ed6
commit 514d7742c2

View File

@ -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