Sorry, I do not know anything about Telegram apps. But what you need is an access token and you can create ith with the “botfather”. You can find information about it here:
You normally react to incoming messages you receive via the Telegram Trigger Node. In the data received you will also get the chat ID. A basic Telegram Bot workflow can be found here:
That’s what I expected until I read about “API”. A little confusing.
It would be great if the node would help with the chatID - because that’s a bit of PITA to obtain as of now.
hm, do not totally understand. When I did create the integration and tested it, it seemed all quite easy.
I simply:
created the bot
opened a conversation directly to it
created the Trigger-Node
Then every time I wanted to test something I did simply write something into the conversation I had open with my bot. The Trigger Node then got the data (including chat ID) and I could then use it to directly send the response.
I know @mooghermez is actively creating bots with n8n. Maybe he has some more insight into it and how he develops.
As you know (@tcurdt) probably:
1- you should create your bot with @botfather in telegram.
2- In n8n in credential you should add your bot token.
3- If you use telegram trigger in a workflow, when you chat by your bot in telegram you can get all needed information in telegram trigger in n8n (also chat id and etc.) Also as @brunoamaral said you can find chat id by @get _id_bot.