muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.25k stars 318 forks source link

Missing URL in messages transmitted from telegram to IRC #357

Closed Sakrecoer closed 3 years ago

Sakrecoer commented 3 years ago

I set up a chain to take a message sent to telegram bot to be delivered to an IRC channel. However if the text of the message contains an URL, {{.text}} is not transmitting this URL to IRC.

Sakrecoer commented 3 years ago

This seems to be specific to the IRC bee. Using {{.text}} with the mastodon or the telegram bee considers the URL as part of the text as expected.

muesli commented 3 years ago

Is this URL exceeding the line length of your IRC server?

Sakrecoer commented 3 years ago

Thank you for your quick response!

I believe it isn't too long. But you made me understand what happened: line breaks!

For reference here is the format of a test messages:

first line
second line
http://example.url

Only the first line came through! Which might be unfortunate in my usecase, but makes total sense.

Sorry for the noise and many thanks for looking into this.

edit: first time i reply over mail, sadly markdown seems to be disabled for such replies.

muesli commented 3 years ago

In that case we should probably split the text by \n and send the lines out individually.

muesli commented 3 years ago

I've just pushed a commit that should fix this situation: we're splitting each outgoing message by the newline character now.

Sakrecoer commented 3 years ago

wow! how quick!? \o/ Thank you very much!

There's not much i can offer in return of your precious dedication, but i have started writing documentation on how to set up the telegram and mastodon bees for the wiki <3

muesli commented 3 years ago

Kind words and the courage to open a ticket is a lot more than most people offer these days :smiley:

So "thank you very much" right back at you :heart: