chore(util): add peer id in err msg (#413)

* add peer id in err msg

* add peer id in err msg

* add peer id in err msg

---------

Co-authored-by: Rungen Zhu <rungen.zhu@shopee.com>
This commit is contained in:
朱润根 2023-12-09 20:18:33 +08:00 committed by GitHub
parent edf579bdc8
commit 7b03e1317d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ func (t telegram) GetSingleMessage(ctx context.Context, c *tg.Client, peer tg.In
// check if message is deleted
if m.GetID() != msg {
return nil, errors.Errorf("message %d may be deleted", msg)
return nil, errors.Errorf("the message %d/%d may be deleted", t.GetInputPeerID(peer), msg)
}
return m, nil