fix: issues

This commit is contained in:
Rogee
2024-09-04 13:36:08 +08:00
parent d7c9d40e37
commit 9b136810bc

View File

@@ -68,11 +68,11 @@ func (t *TClient) Channel(ctx context.Context, channel *tg.Channel, cfg *DBChann
switch mediaClass.(type) {
case *tg.MessageMediaDocument:
if docClass, ok := mediaClass.(*tg.MessageMediaDocument).GetDocument(); ok {
logger.Warn("document",
zap.Int64("channel", channel.ID),
zap.Int("msg_id", msg.ID),
zap.String("file_name", docClass.String()),
)
// logger.Warn("document",
// zap.Int64("channel", channel.ID),
// zap.Int("msg_id", msg.ID),
// zap.String("file_name", docClass.String()),
// )
doc := docClass.(*tg.Document)