Using the Telegram API Bot

Guybrush's icon

Hi there,
I'd like to receive in Max messages sent from a user to a Telegram Bot and send back something (let's say some text) from Max to the Bot. I've found some instructions here https://core.telegram.org/bots I've managed to create a Bot and now I have a token to access the HTTP API but it's not entirely clear how can I use this data in MaxMsp....
Anyone suggestions?

Big thanks in advance

Rob Ramirez's icon

probably want to start by reworking one of these n4m examples: https://github.com/Cycling74/n4m-examples

Guybrush's icon

Thanks Rob for the link! I'm still on Max7, so no node.js at the moment. I wonder if I can use Maxurl to make HTTP requests but I'm struggling the content_type... not sure what I have to use.

Olegs Batenins's icon

yes, you can send messages via maxurl.

telegram message.maxpat
Max Patch