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