media: Don't error on MessageMediaPaidMedia, just bridge unsupported notice
This commit is contained in:
@@ -105,7 +105,7 @@ func (c *TelegramClient) mediaToMatrix(ctx context.Context, portal *bridgev2.Por
|
||||
return convertDice(media), nil, nil, nil
|
||||
case tg.MessageMediaGameTypeID:
|
||||
return convertGame(media), nil, nil, nil
|
||||
case tg.MessageMediaStoryTypeID, tg.MessageMediaInvoiceTypeID, tg.MessageMediaGiveawayTypeID, tg.MessageMediaGiveawayResultsTypeID:
|
||||
case tg.MessageMediaStoryTypeID, tg.MessageMediaInvoiceTypeID, tg.MessageMediaGiveawayTypeID, tg.MessageMediaGiveawayResultsTypeID, tg.MessageMediaPaidMediaTypeID:
|
||||
// TODO: support these properly
|
||||
return &bridgev2.ConvertedMessagePart{
|
||||
Type: event.EventMessage,
|
||||
|
||||
Reference in New Issue
Block a user