Telegram
Updated
On this page
The Telegram integration sends each new survey response to Telegram through the SurveyNinja bot. Responses can go to your personal chat, to a group or to a topic in a group.
Before you start
- You need a Telegram account. To get responses in a group, you must be able to add the bot to that group.
- In someone else's workspace, your role must allow integrations.
Connecting your Telegram account
- Open the survey and go to the Integrations tab.
- Click Telegram in the list.
- Click Connect to account (1). A window opens with a link to the SurveyNinja bot in Telegram.
- In Telegram, click Start. The bot replies that the survey is connected.
- Go back to SurveyNinja and click Continue.

Connecting a group
- On the same screen, click Connect to group (2).
- In Telegram, choose the group and add the bot to it.
- Go back to SurveyNinja and click Continue.
To post in a topic of a group, open the menu (⋯) next to the group in Where to send and choose Group topic. In Notification topic, choose General chat or a specific topic. If the topic you need is not in the list, post a message in that topic mentioning the bot and click the refresh icon (Refresh list). You can also open the list, click Enter ID manually, enter the topic ID from a message link and click Save.
Setting up messages
After connecting, the integration page shows its settings. Changes are saved right away.

- Where to send: the chats and groups that receive responses. To add another one, click Add chat (1), choose Private chat or Group and finish in Telegram. To stop sending to a chat, open the menu (⋯) next to it and choose Remove chat.
- Message title (2): the first line of each message, in bold, up to 70 characters. By default, it is the survey name.
- Questions: the questions whose answers go to Telegram. By default, all questions are selected. Clear the ones you don't need.
- Hidden Variables: shown if the survey has hidden variables. The selected ones are added at the end of the message.
- “Report” and “All responses” buttons (3): adds the Report and All responses buttons under the message. Report opens the survey report. All responses opens this response in the list of responses.
- Message example: click View to see how the message looks in the chat.
To check the setup, click Send test (4) in Testing and history. The bot sends a test message to every chat in the list.
What a message contains
Each message contains:
- the title from Message title;
- the numbered answers to the selected questions;
- the promo code, if the survey gives promo codes;
- the selected hidden variables;
- User info: the respondent's IP address, country and browser. This block is not sent if the survey is anonymous (Anonymous survey in survey settings).
Viewing sending logs
In Testing and history, the Sending Logs row shows how many messages were delivered and not delivered. Click it to open the log. For a message that wasn't delivered, the log shows the reason and what to do. To send it again, open it and click Send again. To resend several, click Send again above the table and choose a period. Test messages are not shown in the log.
Removing the integration
At the bottom of the integration page, click Disconnect Telegram and confirm with Remove. The integration is deleted together with all its settings. Removing the last chat from Where to send also disconnects Telegram after a confirmation.
Limits
- Only completed responses are sent. Incomplete responses don't go to Telegram.
- A message longer than 4,096 characters is split into several messages. The buttons are added to the last one.
- If Telegram is temporarily unavailable, SurveyNinja sends the message again later. Other errors, for example a blocked bot, are not retried automatically.
- If the workspace moves to a plan without Telegram, responses stop going to Telegram.
If something doesn't work
- "Unable to connect. Try again." You didn't click Start in the bot chat, or the bot wasn't added to the group. Do it in Telegram, then click Continue again.
- Messages stopped arriving and the chat disappeared from Where to send. The bot was removed from the group or blocked in the personal chat, so SurveyNinja removed this chat. Open Sending Logs to see the reason, then add the chat or group again with Add chat.
- "Topic not found in the chat" in the log. The group topic was deleted. Choose another topic or General chat in Notification topic.
- "The chat topic is closed" in the log. Reopen the topic in the group. Then resend the messages that weren't delivered.
- "The bot lacks permission to post in the chat" in the log. Make the bot a group admin or allow members to send messages.
- The topic you need isn't in the list. The bot sees a topic only after a message mentions it there. Post such a message in the topic and click Refresh list, or enter the topic ID manually.
Types of Research: 5 Ways to Classify a Study, With Examples