-
Notifications
You must be signed in to change notification settings - Fork 701
Open
Labels
Description
Describe the bug
Trying to send a .cbr file via telegram will fail with the error: ERROR telegram: download failed: Get "": unsupported protocol scheme ""
To Reproduce
Send a files on Telegram
Expected behavior
That can be forwarded like other files
[0222] DEBUG gateway: [func1:gateway/gateway.go:508] => Send from telegram.wiska (-1002003488356) to whatsapp.wiska (120363295145151876@g.us) took 3.9468435s
[0294] DEBUG telegram: [handleRecv:bridge/telegram/handlers.go:190] == Receiving event: &tgbotapi.Message{MessageID:15, MessageThreadID:0, From:(*tgbotapi.User)(0xc0000b25a0), SenderChat:(*tgbotapi.Chat)(nil), Date:1733395757, Chat:(*tgbotapi.Chat)(0xc000982fc0), ForwardFrom:(*tgbotapi.User)(nil), ForwardFromChat:(*tgbotapi.Chat)(nil), ForwardFromMessageID:0, ForwardSignature:"", ForwardSenderName:"", ForwardDate:0, IsTopicMessage:false, IsAutomaticForward:false, ReplyToMessage:(*tgbotapi.Message)(nil), ViaBot:(*tgbotapi.User)(nil), EditDate:0, HasProtectedContent:true, MediaGroupID:"", AuthorSignature:"", Text:"", Entities:[]tgbotapi.MessageEntity(nil), Animation:(*tgbotapi.Animation)(nil), PremiumAnimation:(*tgbotapi.Animation)(nil), Audio:(*tgbotapi.Audio)(nil), Document:(*tgbotapi.Document)(0xc000887e00), Photo:[]tgbotapi.PhotoSize(nil), Sticker:(*tgbotapi.Sticker)(nil), Video:(*tgbotapi.Video)(nil), VideoNote:(*tgbotapi.VideoNote)(nil), Voice:(*tgbotapi.Voice)(nil), Caption:"", CaptionEntities:[]tgbotapi.MessageEntity(nil), HasMediaSpoiler:false, Contact:(*tgbotapi.Contact)(nil), Dice:(*tgbotapi.Dice)(nil), Game:(*tgbotapi.Game)(nil), Poll:(*tgbotapi.Poll)(nil), Venue:(*tgbotapi.Venue)(nil), Location:(*tgbotapi.Location)(nil), NewChatMembers:[]tgbotapi.User(nil), LeftChatMember:(*tgbotapi.User)(nil), NewChatTitle:"", NewChatPhoto:[]tgbotapi.PhotoSize(nil), DeleteChatPhoto:false, GroupChatCreated:false, SuperGroupChatCreated:false, ChannelChatCreated:false, MessageAutoDeleteTimerChanged:(*tgbotapi.MessageAutoDeleteTimerChanged)(nil), MigrateToChatID:0, MigrateFromChatID:0, PinnedMessage:(*tgbotapi.Message)(nil), Invoice:(*tgbotapi.Invoice)(nil), SuccessfulPayment:(*tgbotapi.SuccessfulPayment)(nil), UserShared:(*tgbotapi.UserShared)(nil), ChatShared:(*tgbotapi.ChatShared)(nil), ConnectedWebsite:"", WriteAccessAllowed:(*tgbotapi.WriteAccessAllowed)(nil), PassportData:(*tgbotapi.PassportData)(nil), ProximityAlertTriggered:(*tgbotapi.ProximityAlertTriggered)(nil), ForumTopicCreated:(*tgbotapi.ForumTopicCreated)(nil), ForumTopicEdited:(*tgbotapi.ForumTopicEdited)(nil), ForumTopicClosed:(*tgbotapi.ForumTopicClosed)(nil), ForumTopicReopened:(*tgbotapi.ForumTopicReopened)(nil), GeneralForumTopicHidden:(*tgbotapi.GeneralForumTopicHidden)(nil), GeneralForumTopicUnhidden:(*tgbotapi.GeneralForumTopicUnhidden)(nil), VideoChatScheduled:(*tgbotapi.VideoChatScheduled)(nil), VideoChatStarted:(*tgbotapi.VideoChatStarted)(nil), VideoChatEnded:(*tgbotapi.VideoChatEnded)(nil), VideoChatParticipantsInvited:(*tgbotapi.VideoChatParticipantsInvited)(nil), WebAppData:(*tgbotapi.WebAppData)(nil), ReplyMarkup:(*tgbotapi.InlineKeyboardMarkup)(nil)}
[0294] DEBUG telegram: [HandleDownloadSize:bridge/helper/helper.go:162] Trying to download "Moon+.apk" with size 36449432
[0294] ERROR telegram: [handleRecv:bridge/telegram/handlers.go:242] download failed: Get "": unsupported protocol scheme ""
[0309] DEBUG whatsapp: .........
Environment
OS: [Termux Android 11 (no proot/chroot)]
Matterbridge version: 1.26.1-dev
Additional context
I think this is related. Gifs and MP4s lose mimetype. In Telegram, images and other media are sent as files and not as quick view.

