Notifications
Clear all

Telegram  

Stránka 1 / 2
  RSS
Banan
(@banan)
Member
Telegram

Hi there is settings for telegram notifications - any idea how to set it up?

Napsal : 29/12/2022 4:43 pm
Tojik
(@tojik)
Member Moderator
RE: Telegram

Hi, there should be a guide created soon. The process is pretty difficult so far.

First you'll need to create a bot, doing this will give you a token, then you'll need to follow this guide https://www.wikihow.com/Know-Chat-ID-on-Telegram-on-Android to get your personal or group chat id. The URL that Connect wants is in this format: https://api.telegram.org/bot TOKEN/sendMessage. Fill out both the URL and the chat id of the chat you want your bot to send notifications to and you should be set.

Napsal : 03/01/2023 4:01 pm
tampe125
(@tampe125)
Eminent Member
RE: Telegram

Hello, thank you for the help. I tried to follow the above steps, but I keep getting the error "Invalid endpoint URL". Is there anything else that should be done to activate the bot?

Napsal : 26/01/2023 8:35 am
tampe125
(@tampe125)
Eminent Member
RE: Telegram

Ignore me. Of course as soon as I posted the reply, I got it working. For anyone else having issues, the correct URL is:

https://api.telegram.org/bot{token}/sendMessage

This means that if your token is ABCDEF, the endpoint URL is:

https://api.telegram.org/botABCDEF/sendMessage

I hope this helps

Napsal : 26/01/2023 8:38 am
Tojik
(@tojik)
Member Moderator
RE: Telegram

Yup, I should have provided an example. People just starting out will take whatever <> {} i put and write them out too. Tried omitting them. Didn't work. Thank you for providing the example

Napsal : 26/01/2023 10:36 am
tampe125
(@tampe125)
Eminent Member
RE: Telegram

Just a minor suggestion: is it possible to share the message without the preview of the link? That would be great since 99% of the time it's just a notification and it will keep the chat clear. Ideally it would be awesome if we can make the message disappear after a few days (maybe 3-4 or a week)?

Since these are just notifications, there's no need to keep a full history of every message.

Just my 2 cents.

Napsal : 26/01/2023 11:15 am
Tojik
(@tojik)
Member Moderator
RE:

Yes, the embeds are useless, there is a way for us to get rid of them, so we will. It did not show up in testing, because the previews only work with a public site, which the testing one is not. Thank you for reporting

Napsal : 26/01/2023 3:17 pm
ayamuz
(@ayamuz)
New Member
RE: Telegram

I setup the bot and it works but I’m getting notifications in Czech. Is there a way to change it? Can’t seem to find info on this in the forum.

Napsal : 22/03/2023 12:49 pm
Tojik
(@tojik)
Member Moderator
RE:

Hi, try changing the language in Connect, if it's already set to English please let me know, then try changing it to Czech and back. Curious to see what that does

 

oh okay, maybe it's broken, please wait

Napsal : 22/03/2023 1:12 pm
ayamuz se líbí
ayamuz
(@ayamuz)
New Member
RE:

I tried changing languages back and forth, and it didn't work. Appreciate you looking into it. 🙂

Napsal : 22/03/2023 1:40 pm
Tojik
(@tojik)
Member Moderator
RE: Telegram

A fix will come in the next version. Thnaks for the report

Napsal : 22/03/2023 1:50 pm
sbc17
(@sbc17)
New Member
RE: Telegram

I am struggling to get this to work properly. I've made a bot but I can't get the endpoint url & chat ID correct within Connect. I'm sure I am missing something small and simple.

Is there any more detailed info on how to do this?

Napsal : 29/04/2023 7:50 pm
Tojik
(@tojik)
Member Moderator
RE: Telegram

Hi, please tell us what did you do and whar seems to be the problem. Use screenshots if you can, to further illustrate your problem.
The one thing I now know is that you need to have a nickname on telegram. Older registrations just against a phone number won't work. At least that is what i remember hearing. Might be totally wrong.

Napsal : 02/05/2023 12:42 pm
S7EN
 S7EN
(@s7en)
Member
RE:

 

Posted by: @tampe125

Ignore me. Of course as soon as I posted the reply, I got it working. For anyone else having issues, the correct URL is:

https://api.telegram.org/bot{token}/sendMessage

This means that if your token is ABCDEF, the endpoint URL is:

https://api.telegram.org/botABCDEF/sendMessage

I hope this helps

For all: please do not replace the word "bot" in the url with the name of your bot. You just have to replace the "ABCDEF" with your token.

Took me a few minutes to figure this out 😀

This post was modified před 1 year 2 times by S7EN
Napsal : 04/07/2023 8:05 pm
Tojik se líbí
smaex maex
(@smaex-maex)
Member
RE: Telegram

Can i also upload files via the bot that are then sent directly to the printer?

Napsal : 17/07/2023 5:51 pm
Tojik
(@tojik)
Member Moderator
RE: Telegram

Hi, no, why would you upload files through Telegram? You can upload them directly from the slicer or through the web interface in Prusa Connect or PrusaLink

Napsal : 18/07/2023 10:07 am
smaex maex
(@smaex-maex)
Member
RE: Telegram

I mean then you could upload files directly via mobile phone, but then I continue to use prusa Connect 😅

Napsal : 18/07/2023 1:33 pm
Tojik
(@tojik)
Member Moderator
RE: Telegram

You can, through the Prusa Connect website, but also, slicing on mobile is not very convenient, so I don't see the use case right now

Napsal : 18/07/2023 1:43 pm
Matthew B
(@matthew-b)
Member
RE: Telegram

I followed the directions here and was still was getting an error in setting this up UNTIL I figured out I need to start a message thread with my newly created bot in Telegram before setting up in PrusaConnect as you describe. Once I had started a message thread (so I saw the bot in my active messages in Telegram) it worked fine in PrusaConnect. Just leaving this here in case anyone else has a similar issue.

Napsal : 29/07/2023 4:26 am
Spunckie
(@spunckie)
Member
RE: Telegram

Unfortunately the Link seems to be wrong. In my case this was correct:

https://api.telegram.org/botABCDEF/sendMessage?  

Pay attention to the ? ant the end of the endpoint URL!

The ChatID must be start with @

 

Napsal : 29/07/2023 10:02 am
Stránka 1 / 2
Share: