Hacker News new | past | comments | ask | show | jobs | submit login

The example mybot.c looks very clean and simple, nice project.

It's been a while since I played with telegram bots, but I remember thinking it is one of the best APIs I've used. So simple to register a bot directly through the chat interface with the not father, and a 5 second job to add message posting to a bash script etc.




That they offer long polling as one option for fetching updates makes it incredibly friendly for local development and one-offs.

I have had so much fun integrating with Telegram from Elixir. There is a lib (not in hex unfortunately) that makes it all quite straightforward.

I even gave a remote talk about it with an interactive demo: https://youtu.be/DFGHaER6_j4?si=sooEsiyVTmfXPqNs

Telegram is a mile simpler to get going with than the others.


By comparison I am currently doing some work with Google Chat of all things. If your bot is in a Space (channel/grouo) it only gets webhooks when someone @-mentions it. Which is really not ideal if you are trying to have an assistant bot participate organically in the convo..

I poked around with doing a Slack bot recently and the hoops for an app were many and confusing. Not Google credentials level but more than I cared for.


Seconded on the Telegram bot API.

I've used both Discord's bot API as well, and can say it was way more convoluted to get up and going. Telegram's API was a joy to build in. This was in Node.js.


Is there a simple API to read my chats programmatically? Not a bot, but on my own TG account? I was confused by this a while ago


You need to use the "Telegram API": https://core.telegram.org/api#telegram-api (not the "Bot API") to develop your client. It uses MTProto to communicate with the server, so I suggest you just use a library that supports it like Telethon if you want to program in Python.


Care to provide a concrete example of a difference? Curious.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: