Setup Telegram app integration on your local machine
Please follow the steps if you are trying to work with the Telegram integration on your local machine.
- Start a Ngrok server listening at port
3000or the port you will be running the Hoory installation. - Update the .env variable FRONTEND_URL in Hoory with the
httpsversion of the Ngrok URL. - Start the Hoory server and create a new Telegram channel with the token obtained from Telegram botfather.
While creating the channel, Hoory should have registered a webhook callback URL in Telegram for your Bot. You can verify whether this url registration was done successfully by calling the API.
GET https://api.telegram.org/bot{your_bot_token}/getWebhookInfo
If the webhook is registered correctly with Telegram, your Ngork server should receive events for new Telegram messages, and new conversations will be created in Hoory.