Search

Connectors

Contact support

Helpdesk portal

Telegram - Getting started in Peliqan

Telegram - Getting started in Peliqan

This articles describes how to send messages to Telegram from Peliqan, for example alerts or updates, and how to implement a chatbot in Peliqan.

Please contact support if you have any additional questions or remarks.

Connect Telegram in Peliqan

In Telegram, start a chat with BotFather, and ask it to create a bot, name if for example “Peliqan Bot”. Copy the API token, add a connection in Peliqan and paste the token.

Send a message

Example code:

Receive messages

Set up an API endpoint in Peliqan (POST), and configure it as webhook in Telegram to receive incoming messages:

Add an API handler script to receive incoming messages and send a reply:

Implement a chatbot

Very basic example that invokes OpenAI to create a response: