42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.6k stars 615 forks source link

Messages from Telegram channels appear as username "Telegram" #1654

Closed Mikaela closed 2 years ago

Mikaela commented 2 years ago

Describe the bug

When a message is sent by a Telegram channel, either through automatic linked group or the new feature that forces all public rooms into being able to receive anonymous messages, other protocols see the message coming as from Telegram.

To Reproduce Steps to reproduce the behavior:

  1. Create a new public channel
  2. Go to https://t.me/matterbridge
  3. Touch your profile picture next to the input box and change to your channel
  4. Send a message

Video instruction courtesy of Telegram: https://t.me/telegram/158

Expected behavior

I expect Matterbridge to show the channel public username or at least unique ID or something else than simply "Telegram".

Screenshots/debug logs

I consider them as unnecessary due to how easy this is to reproduce.

Environment (please complete the following information):

Additional context

I am unhappy with Telegram for forcing this feature on users without prior warning and don't fault Matterbridge for the situation.

Mikaela commented 2 years ago

Note: After this update users are able to send messages on behalf of channels they own. Bots are expected to use the field sender_chat in the class Message to correctly support such messages.

42wim commented 2 years ago

Well, I don't have a telegram account, so screenshots and debug logs are useful for me ;-) But this is probably an easy change, could you try a devbuild from https://github.com/42wim/matterbridge/actions/runs/1675193901 ? You can find artifacts on the bottom for mac/linux/windows Let me know if this fixes the issue.

Mikaela commented 2 years ago

Well, I don't have a telegram account, so screenshots and debug logs are useful for me ;-)

Oh, sorry, I had made wrong assumption based on the offiical matterbridge group also being on Telegram.

But this is probably an easy change, could you try a devbuild from https://github.com/42wim/matterbridge/actions/runs/1675193901 ? You can find artifacts on the bottom for mac/linux/windows Let me know if this fixes the issue.

This changes the sender username from Telegram to Channel_bot while I was expeting to see mikaelaaminda.

Debug logs (that I dislike getting as they are always so long and messy to copy

└┌(%:~)┌- Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="== Receiving event: &tgbotapi.Message{MessageID:113040, From:(*tgbotapi.User)(0xc00084b020), SenderChat:(
*tgbotapi.Chat)(0xc0002061e0), Date:1641928254, Chat:(*tgbotapi.Chat)(0xc0002063c0), ForwardFrom:(*tgbotapi.User)(nil), ForwardFromChat:(*tgbotapi.Chat)(nil), ForwardFromMessageID:0, ForwardSignature:"", Forwar
dSenderName:"", ForwardDate:0, IsAutomaticForward:false, ReplyToMessage:(*tgbotapi.Message)(0xc000258000), ViaBot:(*tgbotapi.User)(nil), EditDate:0, HasProtectedContent:false, MediaGroupID:"", AuthorSignature:"
", Text:"miksei samantien jonnekin metaan?", Entities:[]tgbotapi.MessageEntity(nil), Animation:(*tgbotapi.Animation)(nil), Audio:(*tgbotapi.Audio)(nil), Document:(*tgbotapi.Document)(nil), 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), 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(ni
l), LeftChatMember:(*tgbotapi.User)(nil), NewChatTitle:"", NewChatPhoto:[]tgbotapi.PhotoSize(nil), DeleteChatPhoto:false, GroupChatCreated:false, SuperGroupChatCreated:false, ChannelChatCreated:false, MessageAu
toDeleteTimerChanged:(*tgbotapi.MessageAutoDeleteTimerChanged)(nil), MigrateToChatID:0, MigrateFromChatID:0, PinnedMessage:(*tgbotapi.Message)(nil), Invoice:(*tgbotapi.Invoice)(nil), SuccessfulPayment:(*tgbotap
i.SuccessfulPayment)(nil), ConnectedWebsite:"", PassportData:(*tgbotapi.PassportData)(nil), ProximityAlertTriggered:(*tgbotapi.ProximityAlertTriggered)(nil), VoiceChatScheduled:(*tgbotapi.VoiceChatScheduled)(ni
l), VoiceChatStarted:(*tgbotapi.VoiceChatStarted)(nil), VoiceChatEnded:(*tgbotapi.VoiceChatEnded)(nil), VoiceChatParticipantsInvited:(*tgbotapi.VoiceChatParticipantsInvited)(nil), ReplyMarkup:(*tgbotapi.InlineK
eyboardMarkup)(nil)}" func=handleRecv file="matterbridge/bridge/telegram/handlers.go:138" prefix=telegram 
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=error msg="Userprofile download failed for -1001797685505 Bad Request: invalid user_id specified" func=handleDownloadAvatar fi
le="matterbridge/bridge/telegram/handlers.go:217" prefix=telegram
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="<= Sending message from Channel_Bot on telegram.ppfimatterbridge to gateway" func=handleRecv file="matterbridge/bri
dge/telegram/handlers.go:190" prefix=telegram
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="<= Message is config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis lai
ttaa työttömien tekemään it...)", Channel:"-1001102075786", Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterb
ridge", Event:"", Protocol:"", Gateway:"", ParentID:"", Timestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ID:"113040", Extra:map[string][]interface {}{}}" func=handleRecv file="matterbridge/bridge/
telegram/handlers.go:191" prefix=telegram
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="=> Sending config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laitta
a työttömien tekemään it...)", Channel:"-1001102075786", Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbrid
ge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"113040", Extra:map[string][]interface {}{}} from telegram
.ppfimatterbridge (-1001102075786) to irc.pirateirc (#piraatit)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="=> Receiving config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis lait
taa työttömien tekemään it...)", Channel:"#piraatit", Username:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridg
e", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=Send file="mat
terbridge/bridge/irc/irc.go:141" prefix=irc
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to irc.pirateirc (#piraatit) took 289.867µs" func=func1 fil
e="matterbridge/gateway/gateway.go:488" prefix=gateway
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="=> Sending config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laitta
a työttömien tekemään it...)", Channel:"-1001102075786", Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbrid
ge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"113040", Extra:map[string][]interface {}{}} from telegram
.ppfimatterbridge (-1001102075786) to discord.piraatit (ID:412258283546476555)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="=> Receiving config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis lait
taa työttömien tekemään it...)", Channel:"ID:412258283546476555", Username:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppf
imatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=Se
nd file="matterbridge/bridge/discord/discord.go:235" prefix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Testing mention: 'Pihvi3:'" func=func1 file="matterbridge/bridge/discord/helpers.go:196" prefix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Testing mention: 'Pihvi3: mun'" func=func1 file="matterbridge/bridge/discord/helpers.go:196" prefix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Testing mention: 'Pihvi3: mun mielestä'" func=func1 file="matterbridge/bridge/discord/helpers.go:196" prefix=discor
d
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Testing mention: 'Pihvi3: mun mielestä työkkärin'" func=func1 file="matterbridge/bridge/discord/helpers.go:196" pre
fix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Testing mention: 'Pihvi3: mun mielestä työkkärin p'" func=func1 file="matterbridge/bridge/discord/helpers.go:196" p
refix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Processing webhook sending for message &config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mie
lestä työkkärin pitäis laittaa työttömien tekemään it...)", Channel:"ID:412258283546476555", Username:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.
png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"", Extra:map[string
][]interface {}{}}" func=handleEventWebhook file="matterbridge/bridge/discord/webhook.go:137" prefix=discord
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg="Sending RELAYMSG to channel #piraatit: nick=Channel_Bot/T" func=doSend file="matterbridge/bridge/irc/irc.go:241" pr
efix=irc
Jan 11 21:10:54 silta matterbridge[4044009]: time="2022-01-11T21:10:54+02:00" level=debug msg=""@draft/relaymsg=MI1;msgid=td2b2e6m8fh6pkyw5jghxycpke;time=2022-01-11T19:10:54.702Z :Channel_Bot/T!~u@hxkv4yicszqwu
.PirateIRC PRIVMSG #piraatit :miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laittaa työttömien tekemään it...)"" func=handleOther file="matterbridge/bridge/irc/handlers.go:163" pr
efix=irc
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="mID discord.piraatit: 930539287936647209" func=SendMessage file="matterbridge/gateway/gateway.go:498" prefix=gatewa
y                                                                                                                                                                                                                 Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to discord.piraatit (ID:412258283546476555) took 318.666314
ms" func=func1 file="matterbridge/gateway/gateway.go:488" prefix=gateway                                                                                                                                          
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="=> Sending config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laitta
a työttömien tekemään it...)", Channel:"-1001102075786", Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbrid
ge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"113040", Extra:map[string][]interface {}{}} from telegram
.ppfimatterbridge (-1001102075786) to matrix.pirateriot (!vFKYLiSfVDsPmUKpms:pirateriot.net)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway                                          
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="=> Receiving config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis lait
taa työttömien tekemään it...)", Channel:"!vFKYLiSfVDsPmUKpms:pirateriot.net", Username:"C\u200bhannel_Bot/T: ", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", 
Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.January, 11, 21, 10, 54, 698679422, time.Local), ID:"", Extra:map[string][]int
erface {}{}}" func=Send file="matterbridge/bridge/matrix/matrix.go:142" prefix=matrix                                                                                                                             
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="Channel !vFKYLiSfVDsPmUKpms:pirateriot.net maps to channel id !vFKYLiSfVDsPmUKpms:pirateriot.net" func=Send file="m
atterbridge/bridge/matrix/matrix.go:145" prefix=matrix                                                                                                                                                            
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="mID matrix.pirateriot: $a6e8b-WPZrW30AO3mBhuYH80rVvyjtd5F7GidA-s71A" func=SendMessage file="matterbridge/gateway/ga
teway.go:498" prefix=gateway                                                                                                                                                                                      
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to matrix.pirateriot (!vFKYLiSfVDsPmUKpms:pirateriot.net) t
ook 277.495786ms" func=func1 file="matterbridge/gateway/gateway.go:488" prefix=gateway                                                                                                                            
Jan 11 21:10:55 silta matterbridge[4044009]: time="2022-01-11T21:10:55+02:00" level=debug msg="== Receiving event: &gomatrix.Event{StateKey:(*string)(nil), Sender:"@matterbridgeppfi:pirateriot.net", Type:"m.roo
m.message", Timestamp:1641928255042, ID:"$a6e8b-WPZrW30AO3mBhuYH80rVvyjtd5F7GidA-s71A", RoomID:"!vFKYLiSfVDsPmUKpms:pirateriot.net", Redacts:"", Unsigned:map[string]interface {}{"age":246, "transaction_id":"go1
641928255023593236"}, Content:map[string]interface {}{"body":"C\u200bhannel_Bot/T: miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laittaa työttömien tekemään it...)", "format":"", 
"formatted_body":"", "msgtype":"m.text"}, PrevContent:map[string]interface {}(nil)}" func=handleEvent file="matterbridge/bridge/matrix/matrix.go:428" prefix=matrix                                               
Jan 11 21:10:56 silta matterbridge[4044009]: time="2022-01-11T21:10:56+02:00" level=debug msg="== Receiving event &discordgo.Message{ID:"930539287936647209", ChannelID:"412258283546476555", GuildID:"38184940964
3610122", Content:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis laittaa työttömien tekemään it...)", Timestamp:"2022-01-11T19:10:54.828000+00:00", EditedTimestamp:"", MentionRole
s:[]string{}, TTS:false, MentionEveryone:false, Author:(*discordgo.User)(0xc000988500), Attachments:[]*discordgo.MessageAttachment{}, Embeds:[]*discordgo.MessageEmbed{}, Mentions:[]*discordgo.User{}, Reactions:
[]*discordgo.MessageReactions(nil), Pinned:false, Type:0, WebhookID:"426669981200285706", Member:(*discordgo.Member)(nil), MentionChannels:[]*discordgo.Channel(nil), Activity:(*discordgo.MessageActivity)(nil), 
Application:(*discordgo.MessageApplication)(nil), MessageReference:(*discordgo.MessageReference)(nil), Flags:0}" func=messageCreate file="matterbridge/bridge/discord/handlers.go:86" prefix=discord
Jan 11 21:10:56 silta matterbridge[4044009]: time="2022-01-11T21:10:56+02:00" level=debug msg="<= Sending message from Channel_Bot/T on discord.piraattinuoret to gateway" func=messageCreate file="matterbridge/b
ridge/discord/handlers.go:135" prefix=discord                                                            
Jan 11 21:10:56 silta matterbridge[4044009]: time="2022-01-11T21:10:56+02:00" level=debug msg="<= Message is config.Message{Text:"miksei samantien jonnekin metaan? (re @Pihvi3: mun mielestä työkkärin pitäis lai
ttaa työttömien tekemään it...)", Channel:"", Username:"Channel_Bot/T", UserID:"426669981200285706", Avatar:"https://cdn.discordapp.com/avatars/426669981200285706/05dd6b9f3f5c30d9fdb17bdba15f005c.jpg", Account:
"discord.piraattinuoret", Event:"", Protocol:"", Gateway:"", ParentID:"", Timestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ID:"930539287936647209", Extra:map[string][]interface {}(nil)}" func=mess
ageCreate file="matterbridge/bridge/discord/handlers.go:136" prefix=discord                                                                                                                                       
42wim commented 2 years ago

I've added an extra debuglevel option you need to add to your telegram config. This should dump the complete contents of a telegram message, and would show you if the name mikaelaaminda can be found somewhere.

If you find it, let me know :)

[telegram.telegramconfig]
token=xxx
debuglevel=1

You can find the binaries here: https://github.com/42wim/matterbridge/actions/runs/1786776051 (when the build is done)

Mikaela commented 2 years ago

Thanks, I did find it, in UserName, the output is very verbose, but line 13 (in text editor) of the below contains it:

└┌(%:~)┌- Feb 03 10:59:00 silta matterbridge[605532]: time="2022-02-03T10:59:00+02:00" level=debug msg="== Receiving event: &tgbotapi.Message{MessageID:114547, From:(*tgbotapi.User)(0xc0003b5020), SenderChat:(*tgbotapi.Chat)(0xc000208000), Date:1643878740, Chat:(*tgbotapi.Chat)(0xc0002080f0), ForwardFrom:(*tgbotapi.User)(nil), ForwardFromChat:(*tgbotapi.Chat)(nil), ForwardFromMessageID:0, ForwardSignature:"", ForwardSenderName:"", ForwardDate:0, IsAutomaticForward:false, ReplyToMessage:(*tgbotapi.Message)(nil), ViaBot:(*tgbotapi.User)(nil), EditDate:0, HasProtectedContent:false, MediaGroupID:"", AuthorSignature:"", Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Entities:[]tgbotapi.MessageEntity(nil), Animation:(*tgbotapi.Animation)(nil), Audio:(*tgbotapi.Audio)(nil), Document:(*tgbotapi.Document)(nil), Photo:[]t
gbotapi.PhotoSize(nil), Sticker:(*tgbotapi.Sticker)(nil), Video:(*tgbotapi.Video)(nil), VideoNote:(*tgbotapi.VideoNote)(nil), Voice:(*tgbotapi.Voice)(nil), Caption:"", CaptionEntities:[]tgbotapi.MessageEntity(nil), 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:[]tgbo
tapi.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), SuccessfulPayme
nt:(*tgbotapi.SuccessfulPayment)(nil), ConnectedWebsite:"", PassportData:(*tgbotapi.PassportData)(nil), ProximityAlertTriggered:(*tgbotapi.ProximityAlertTriggered)(nil), VoiceChatScheduled:(*tgbotapi.VoiceChatScheduled)(nil), VoiceChatStarted:(*tgbotapi.VoiceChatStarted)(nil), VoiceChatEnded:(*tgbotapi.VoiceChatEnded)(nil), VoiceChatParticipantsInvited:(*tgbotapi.VoiceChatParticipantsInvited)(nil), ReplyMarkup:(*tgbo
tapi.InlineKeyboardMarkup)(nil)}" func=handleRecv file="matterbridge/bridge/telegram/handlers.go:152" prefix=telegram                                                                                             
Feb 03 10:59:00 silta matterbridge[605532]: (*tgbotapi.Message)(0xc0001fd180)({                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:  MessageID: (int) 114547,                                    
Feb 03 10:59:00 silta matterbridge[605532]:  From: (*tgbotapi.User)(0xc0003b5020)(Channel_Bot),                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:  SenderChat: (*tgbotapi.Chat)(0xc000208000)({                                                                                                                         
Feb 03 10:59:00 silta matterbridge[605532]:   ID: (int64) -1001797685505,                                                                                                                                         
Feb 03 10:59:00 silta matterbridge[605532]:   Type: (string) (len=7) "channel",                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:   Title: (string) (len=28) "Aminda's Public Test Channel",                                                                                                            
Feb 03 10:59:00 silta matterbridge[605532]:   UserName: (string) (len=13) "mikaelaaminda",                                                                                                                        
Feb 03 10:59:00 silta matterbridge[605532]:   FirstName: (string) "",                                                                                                                                             
Feb 03 10:59:00 silta matterbridge[605532]:   LastName: (string) "",                                                                                                                                              
Feb 03 10:59:00 silta matterbridge[605532]:   Photo: (*tgbotapi.ChatPhoto)(<nil>),                                                                                                                                
Feb 03 10:59:00 silta matterbridge[605532]:   Bio: (string) "",                                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:   HasPrivateForwards: (bool) false,                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:   Description: (string) "",                                  
Feb 03 10:59:00 silta matterbridge[605532]:   InviteLink: (string) "",                                   
Feb 03 10:59:00 silta matterbridge[605532]:   PinnedMessage: (*tgbotapi.Message)(<nil>),                 
Feb 03 10:59:00 silta matterbridge[605532]:   Permissions: (*tgbotapi.ChatPermissions)(<nil>),           
Feb 03 10:59:00 silta matterbridge[605532]:   SlowModeDelay: (int) 0,                                    
Feb 03 10:59:00 silta matterbridge[605532]:   MessageAutoDeleteTime: (int) 0,                            
Feb 03 10:59:00 silta matterbridge[605532]:   HasProtectedContent: (bool) false,                         
Feb 03 10:59:00 silta matterbridge[605532]:   StickerSetName: (string) "",                               
Feb 03 10:59:00 silta matterbridge[605532]:   CanSetStickerSet: (bool) false,                            
Feb 03 10:59:00 silta matterbridge[605532]:   LinkedChatID: (int64) 0,                                   
Feb 03 10:59:00 silta matterbridge[605532]:   Location: (*tgbotapi.ChatLocation)(<nil>)                  
Feb 03 10:59:00 silta matterbridge[605532]:  }),
Feb 03 10:59:00 silta matterbridge[605532]:  Date: (int) 1643878740,                                     
Feb 03 10:59:00 silta matterbridge[605532]:  Chat: (*tgbotapi.Chat)(0xc0002080f0)({                      
Feb 03 10:59:00 silta matterbridge[605532]:   ID: (int64) -1001102075786,                                
Feb 03 10:59:00 silta matterbridge[605532]:   Type: (string) (len=10) "supergroup",                      
Feb 03 10:59:00 silta matterbridge[605532]:   Title: (string) (len=8) "Piraatit",                        
Feb 03 10:59:00 silta matterbridge[605532]:   UserName: (string) (len=14) "Piraattipuolue",              
Feb 03 10:59:00 silta matterbridge[605532]:   FirstName: (string) "",                                    
Feb 03 10:59:00 silta matterbridge[605532]:   LastName: (string) "",                                     
Feb 03 10:59:00 silta matterbridge[605532]:   Photo: (*tgbotapi.ChatPhoto)(<nil>),                       
Feb 03 10:59:00 silta matterbridge[605532]:   Bio: (string) "",                                          
Feb 03 10:59:00 silta matterbridge[605532]:   HasPrivateForwards: (bool) false,                          
Feb 03 10:59:00 silta matterbridge[605532]:   Description: (string) "",                                  
Feb 03 10:59:00 silta matterbridge[605532]:   InviteLink: (string) "",                                   
Feb 03 10:59:00 silta matterbridge[605532]:   PinnedMessage: (*tgbotapi.Message)(<nil>),                 
Feb 03 10:59:00 silta matterbridge[605532]:   Permissions: (*tgbotapi.ChatPermissions)(<nil>),           
Feb 03 10:59:00 silta matterbridge[605532]:   SlowModeDelay: (int) 0,                                    
Feb 03 10:59:00 silta matterbridge[605532]:   MessageAutoDeleteTime: (int) 0,                            
Feb 03 10:59:00 silta matterbridge[605532]:   HasProtectedContent: (bool) false,                         
Feb 03 10:59:00 silta matterbridge[605532]:   StickerSetName: (string) "",                               
Feb 03 10:59:00 silta matterbridge[605532]:   CanSetStickerSet: (bool) false,                                                                                                                                     Feb 03 10:59:00 silta matterbridge[605532]:   LinkedChatID: (int64) 0,                                                                                                                                            Feb 03 10:59:00 silta matterbridge[605532]:   Location: (*tgbotapi.ChatLocation)(<nil>)                                                                                                                           
Feb 03 10:59:00 silta matterbridge[605532]:  }),                                                                                                                                                                  Feb 03 10:59:00 silta matterbridge[605532]:  ForwardFrom: (*tgbotapi.User)(<nil>),                                                                                                                                
Feb 03 10:59:00 silta matterbridge[605532]:  ForwardFromChat: (*tgbotapi.Chat)(<nil>),                                                                                                                            Feb 03 10:59:00 silta matterbridge[605532]:  ForwardFromMessageID: (int) 0,                                                                                                                                       
Feb 03 10:59:00 silta matterbridge[605532]:  ForwardSignature: (string) "",                                                                                                                                       Feb 03 10:59:00 silta matterbridge[605532]:  ForwardSenderName: (string) "",                                                                                                                                      
Feb 03 10:59:00 silta matterbridge[605532]:  ForwardDate: (int) 0,                                                                                                                                                
Feb 03 10:59:00 silta matterbridge[605532]:  IsAutomaticForward: (bool) false,                                                                                                                                    
Feb 03 10:59:00 silta matterbridge[605532]:  ReplyToMessage: (*tgbotapi.Message)(<nil>),                 
Feb 03 10:59:00 silta matterbridge[605532]:  ViaBot: (*tgbotapi.User)(<nil>),                                                                                                                                     
Feb 03 10:59:00 silta matterbridge[605532]:  EditDate: (int) 0,                                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:  HasProtectedContent: (bool) false,                                                                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:  MediaGroupID: (string) "",                                                                                                                                           
Feb 03 10:59:00 silta matterbridge[605532]:  AuthorSignature: (string) "",                                                                                                                                        
Feb 03 10:59:00 silta matterbridge[605532]:  Text: (string) (len=56) "Aminda testaa taas saadakseen parempaa lokia ylävirtaan",                                                                                   
Feb 03 10:59:00 silta matterbridge[605532]:  Entities: ([]tgbotapi.MessageEntity) <nil>,                                                                                                                          
Feb 03 10:59:00 silta matterbridge[605532]:  Animation: (*tgbotapi.Animation)(<nil>),                                                                                                                             
Feb 03 10:59:00 silta matterbridge[605532]:  Audio: (*tgbotapi.Audio)(<nil>),                                                                                                                                     
Feb 03 10:59:00 silta matterbridge[605532]:  Document: (*tgbotapi.Document)(<nil>),                                                                                                                               
Feb 03 10:59:00 silta matterbridge[605532]:  Photo: ([]tgbotapi.PhotoSize) <nil>,                                                                                                                                 
Feb 03 10:59:00 silta matterbridge[605532]:  Sticker: (*tgbotapi.Sticker)(<nil>),                        
Feb 03 10:59:00 silta matterbridge[605532]:  Video: (*tgbotapi.Video)(<nil>),                            
Feb 03 10:59:00 silta matterbridge[605532]:  VideoNote: (*tgbotapi.VideoNote)(<nil>),                    
Feb 03 10:59:00 silta matterbridge[605532]:  Voice: (*tgbotapi.Voice)(<nil>),                            
Feb 03 10:59:00 silta matterbridge[605532]:  Caption: (string) "",                                       
Feb 03 10:59:00 silta matterbridge[605532]:  CaptionEntities: ([]tgbotapi.MessageEntity) <nil>,          
Feb 03 10:59:00 silta matterbridge[605532]:  Contact: (*tgbotapi.Contact)(<nil>),                        
Feb 03 10:59:00 silta matterbridge[605532]:  Dice: (*tgbotapi.Dice)(<nil>),                              
Feb 03 10:59:00 silta matterbridge[605532]:  Game: (*tgbotapi.Game)(<nil>),                              
Feb 03 10:59:00 silta matterbridge[605532]:  Poll: (*tgbotapi.Poll)(<nil>),                              
Feb 03 10:59:00 silta matterbridge[605532]:  Venue: (*tgbotapi.Venue)(<nil>),                            
Feb 03 10:59:00 silta matterbridge[605532]:  Location: (*tgbotapi.Location)(<nil>),                      
Feb 03 10:59:00 silta matterbridge[605532]:  NewChatMembers: ([]tgbotapi.User) <nil>,                    
Feb 03 10:59:00 silta matterbridge[605532]:  LeftChatMember: (*tgbotapi.User)(<nil>),                    
Feb 03 10:59:00 silta matterbridge[605532]:  NewChatTitle: (string) "",                                  
Feb 03 10:59:00 silta matterbridge[605532]:  NewChatPhoto: ([]tgbotapi.PhotoSize) <nil>,                 
Feb 03 10:59:00 silta matterbridge[605532]:  DeleteChatPhoto: (bool) false,                              
Feb 03 10:59:00 silta matterbridge[605532]:  GroupChatCreated: (bool) false,                             
Feb 03 10:59:00 silta matterbridge[605532]:  SuperGroupChatCreated: (bool) false,                        
Feb 03 10:59:00 silta matterbridge[605532]:  ChannelChatCreated: (bool) false,                           
Feb 03 10:59:00 silta matterbridge[605532]:  MessageAutoDeleteTimerChanged: (*tgbotapi.MessageAutoDeleteTimerChanged)(<nil>),
Feb 03 10:59:00 silta matterbridge[605532]:  MigrateToChatID: (int64) 0,                                 
Feb 03 10:59:00 silta matterbridge[605532]:  MigrateFromChatID: (int64) 0,                               
Feb 03 10:59:00 silta matterbridge[605532]:  PinnedMessage: (*tgbotapi.Message)(<nil>),                  
Feb 03 10:59:00 silta matterbridge[605532]:  Invoice: (*tgbotapi.Invoice)(<nil>),                        
Feb 03 10:59:00 silta matterbridge[605532]:  SuccessfulPayment: (*tgbotapi.SuccessfulPayment)(<nil>),    
Feb 03 10:59:00 silta matterbridge[605532]:  ConnectedWebsite: (string) "",                              
Feb 03 10:59:00 silta matterbridge[605532]:  PassportData: (*tgbotapi.PassportData)(<nil>),              
Feb 03 10:59:00 silta matterbridge[605532]:  ProximityAlertTriggered: (*tgbotapi.ProximityAlertTriggered)(<nil>),
Feb 03 10:59:00 silta matterbridge[605532]:  VoiceChatScheduled: (*tgbotapi.VoiceChatScheduled)(<nil>),  
Feb 03 10:59:00 silta matterbridge[605532]:  VoiceChatStarted: (*tgbotapi.VoiceChatStarted)(<nil>),      
Feb 03 10:59:00 silta matterbridge[605532]:  VoiceChatEnded: (*tgbotapi.VoiceChatEnded)(<nil>),                                                                                                                   Feb 03 10:59:00 silta matterbridge[605532]:  VoiceChatParticipantsInvited: (*tgbotapi.VoiceChatParticipantsInvited)(<nil>),                                                                                       Feb 03 10:59:00 silta matterbridge[605532]:  ReplyMarkup: (*tgbotapi.InlineKeyboardMarkup)(<nil>)                                                                                                                 
Feb 03 10:59:00 silta matterbridge[605532]: })                                                                                                                                                                    Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="trying to download "136817688.png" fileid "AgACAgEAAxUAAWH7mVSB_S5HafEJLQugg_uiFJ4GAAKppzEbGKwnCPJ8PxlxyCkwAQADAgADY
QADIwQ" with size 4517" func=handleDownloadAvatar file="matterbridge/bridge/telegram/handlers.go:242" prefix=telegram                                                                                             Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="Trying to download "136817688.png" with size 4517" func=HandleDownloadSize file="matterbridge/bridge/helper/helper.g
o:156" prefix=telegram                                                                                                                                                                                            Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="Download OK "136817688.png" 4517" func=HandleDownloadData file="matterbridge/bridge/helper/helper.go:172" prefix=tel
egram                                                                                                                                                                                                             
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="mediaserver path placing file: /var/www/html/matterbridge/75b542bc/136817688.png" func=handleFilesLocal file="matter
bridge/gateway/handlers.go:158" prefix=gateway                                                           
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="mediaserver download URL = https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png" func=handleFiles file="mat
terbridge/gateway/handlers.go:112" prefix=gateway                                                                                                                                                                 
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Sending config.Message{Text:"avatar", Channel:"-1001102075786", Username:"system", UserID:"136817688", Avatar:"",
 Account:"telegram.ppfimatterbridge", Event:"avatar_download", Protocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 367719571, time.Local), ID:"", Extra:m
ap[string][]interface {}{"file":[]interface {}{config.FileInfo{Name:"136817688.png", Data:(*[]uint8)(0xc000b82348), Comment:"avatar", URL:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Size:0,
 Avatar:true, SHA:"75b542bc"}}}} from telegram.ppfimatterbridge (-1001102075786) to telegram.ppfimatterbridge (-1001102075786)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway        
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Receiving config.Message{Text:"avatar", Channel:"-1001102075786", Username:"<code>system/T</code>: ", UserID:"136
817688", Avatar:"https://git.piraattipuolue.fi/Pikaviestimet/Pikaviestimet/raw/branch/master/MI1.png", Account:"telegram.ppfimatterbridge", Event:"avatar_download", Protocol:"telegram", Gateway:"piraatit", Pare
ntID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 367719571, time.Local), ID:"", Extra:map[string][]interface {}{"file":[]interface {}{config.FileInfo{Name:"136817688.png", Data:(*[]uint8)(0xc000b
82348), Comment:"avatar", URL:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Size:0, Avatar:true, SHA:"75b542bc"}}}}" func=Send file="matterbridge/bridge/telegram/telegram.go:89" prefix=telegr
am                                                                                                                                                                                                                
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="Added 75b542bc to 136817688 in avatarMap" func=cacheAvatar file="matterbridge/bridge/telegram/telegram.go:166" prefi
x=telegram                                                                                               
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to telegram.ppfimatterbridge (-1001102075786) took 1.54723ms
" func=func1 file="matterbridge/gateway/gateway.go:488" prefix=gateway                                   
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=error msg="Userprofile download failed for -1001797685505 Bad Request: invalid user_id specified" func=handleDownloadAvatar fil
e="matterbridge/bridge/telegram/handlers.go:235" prefix=telegram                                         
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="<= Sending message from Channel_Bot on telegram.ppfimatterbridge to gateway" func=handleRecv file="matterbridge/brid
ge/telegram/handlers.go:208" prefix=telegram                                                             
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="<= Message is config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"-1001102075786
", Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"", Gateway:"", ParentID:"", T
imestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ID:"114547", Extra:map[string][]interface {}{}}" func=handleRecv file="matterbridge/bridge/telegram/handlers.go:209" prefix=telegram
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Sending config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"-1001102075786", 
Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", P
arentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"114547", Extra:map[string][]interface {}{}} from telegram.ppfimatterbridge (-1001102075786) to irc.pirateirc (#pira
atit)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway                        
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Receiving config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"#piraatit", Use
rname:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", Pa
rentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=Send file="matterbridge/bridge/irc/irc.go:141" prefix=irc
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to irc.pirateirc (#piraatit) took 1.675371ms" func=func1 fil
e="matterbridge/gateway/gateway.go:488" prefix=gateway                                                   
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Sending config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"-1001102075786", 
Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", P
arentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"114547", Extra:map[string][]interface {}{}} from telegram.ppfimatterbridge (-1001102075786) to discord.piraatit (ID
:412258283546476555)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway         
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="=> Receiving config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"ID:412258283546
476555", Username:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"p
iraatit", ParentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=Send file="matterbridge/bridge/discord/discord.go:235" prefi
x=discord                                                                                                
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="Processing webhook sending for message &config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan
", Channel:"ID:412258283546476555", Username:"Channel_Bot/T", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Prot
ocol:"telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=handleEventWebhook file="matterb$
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="Sending RELAYMSG to channel #piraatit: nick=Channel_Bot/T" func=doSend file="matterbridge/bridge/irc/irc.go:241" pre
fix=irc                                                                                                                                                                                                           
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg=""@draft/relaymsg=MI1;msgid=hf59mivwnw54wuk3hcuh4qynaa;time=2022-02-03T08:59:01.424Z :Channel_Bot/T!~u@hxkv4yicszqwu.
PirateIRC PRIVMSG #piraatit :Aminda testaa taas saadakseen parempaa lokia ylävirtaan"" func=handleOther file="matterbridge/bridge/irc/handlers.go:163" prefix=irc                                                 
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="== Receiving event &discordgo.Message{ID:"938720222733561886", ChannelID:"412258283546476555", GuildID:"381849409643
610122", Content:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Timestamp:"2022-02-03T08:59:01.678000+00:00", EditedTimestamp:"", MentionRoles:[]string{}, TTS:false, MentionEveryone:false, Author:(*
discordgo.User)(0xc0007340a0), Attachments:[]*discordgo.MessageAttachment{}, Embeds:[]*discordgo.MessageEmbed{}, Mentions:[]*discordgo.User{}, Reactions:[]*discordgo.MessageReactions(nil), Pinned:false, Type:0,
 WebhookID:"426669981200285706", Member:(*discordgo.Member)(nil), MentionChannels:[]*discordgo.Channel(nil), Activity:(*discordgo.MessageActivity)(nil), Application:(*discordgo.MessageApplication)(nil), Message
Reference:(*discordgo.MessageReference)(nil), Flags:0}" func=messageCreate file="matterbridge/bridge/discord/handlers.go:86" prefix=discord                                                                       
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="<= Sending message from Channel_Bot/T on discord.piraattinuoret to gateway" func=messageCreate file="matterbridge/br
idge/discord/handlers.go:135" prefix=discord                                                             
Feb 03 10:59:01 silta matterbridge[605532]: time="2022-02-03T10:59:01+02:00" level=debug msg="<= Message is config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"", Username:"C
hannel_Bot/T", UserID:"426669981200285706", Avatar:"https://cdn.discordapp.com/avatars/426669981200285706/.jpg", Account:"discord.piraattinuoret", Event:"", Protocol:"", Gateway:"", ParentID:"", Timestamp:time.
Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ID:"938720222733561886", Extra:map[string][]interface {}(nil)}" func=messageCreate file="matterbridge/bridge/discord/handlers.go:136" prefix=discord              
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="mID discord.piraatit: 938720222733561886" func=SendMessage file="matterbridge/gateway/gateway.go:498" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to discord.piraatit (ID:412258283546476555) took 696.292461m
s" func=func1 file="matterbridge/gateway/gateway.go:488" prefix=gateway                                                                                                                                           
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="=> Sending config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"-1001102075786", 
Username:"Channel_Bot", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"telegram", Gateway:"piraatit", P
arentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"114547", Extra:map[string][]interface {}{}} from telegram.ppfimatterbridge (-1001102075786) to matrix.pirateriot (!
vFKYLiSfVDsPmUKpms:pirateriot.net)" func=SendMessage file="matterbridge/gateway/gateway.go:479" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="=> Receiving config.Message{Text:"Aminda testaa taas saadakseen parempaa lokia ylävirtaan", Channel:"!vFKYLiSfVDsPmU
Kpms:pirateriot.net", Username:"C\u200bhannel_Bot/T: ", UserID:"-1001797685505", Avatar:"https://silta.piraatit.fi/matterbridge/75b542bc/136817688.png", Account:"telegram.ppfimatterbridge", Event:"", Protocol:"
telegram", Gateway:"piraatit", ParentID:"", Timestamp:time.Date(2022, time.February, 3, 10, 59, 1, 418487928, time.Local), ID:"", Extra:map[string][]interface {}{}}" func=Send file="matterbridge/bridge/matrix/m
atrix.go:142" prefix=matrix                         
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="Channel !vFKYLiSfVDsPmUKpms:pirateriot.net maps to channel id !vFKYLiSfVDsPmUKpms:pirateriot.net" func=Send file="ma
tterbridge/bridge/matrix/matrix.go:145" prefix=matrix            
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="mID matrix.pirateriot: $xSfTDeMt-ZzgkrhXcE_4JAPm4BVWO6Bfj0IMH0Z-TT8" func=SendMessage file="matterbridge/gateway/gat
eway.go:498" prefix=gateway                         
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="=> Send from telegram.ppfimatterbridge (-1001102075786) to matrix.pirateriot (!vFKYLiSfVDsPmUKpms:pirateriot.net) to
ok 339.615186ms" func=func1 file="matterbridge/gateway/gateway.go:488" prefix=gateway                    
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="empty channel" func=handleMessage file="matterbridge/gateway/handlers.go:213" prefix=gateway
Feb 03 10:59:02 silta matterbridge[605532]: time="2022-02-03T10:59:02+02:00" level=debug msg="== Receiving event: &gomatrix.Event{StateKey:(*string)(nil), Sender:"@matterbridgeppfi:pirateriot.net", Type:"m.room
.message", Timestamp:1643878742140, ID:"$xSfTDeMt-ZzgkrhXcE_4JAPm4BVWO6Bfj0IMH0Z-TT8", RoomID:"!vFKYLiSfVDsPmUKpms:pirateriot.net", Redacts:"", Unsigned:map[string]interface {}{"age":317, "transaction_id":"go16
43878742121276690"}, Content:map[string]interface {}{"body":"C\u200bhannel_Bot/T: Aminda testaa taas saadakseen parempaa lokia ylävirtaan", "format":"", "formatted_body":"", "msgtype":"m.text"}, PrevContent:map
[string]interface {}(nil)}" func=handleEvent file="matterbridge/bridge/matrix/matrix.go:428" prefix=matrix
42wim commented 2 years ago

Thanks for this, it should now be fixed in the PR. You can find the build on https://github.com/42wim/matterbridge/actions/runs/1791762148 (when the build is done) Let me know if it's fixed now :)

Mikaela commented 2 years ago

Thank you, it works 🎉