This commit is contained in:
Rogee
2024-09-02 19:45:16 +08:00
parent 548b9109eb
commit 399dbe4264
6 changed files with 23 additions and 3 deletions

View File

@@ -59,6 +59,9 @@ func (t *TClient) Channel(ctx context.Context, channel *tg.Channel, cfg *DBChann
defer cfg.SaveMessage(ctx, channelMessage)
channelMessage.WithMessage(msg.GetMessage())
if grpID, ok := msg.GetGroupedID(); ok {
channelMessage.WithGroupID(grpID)
}
if mediaClass, ok := msg.GetMedia(); ok {
switch mediaClass.(type) {