The LimeSurvey LSTelegramNotify plugin sends survey completion notifications to Telegram.
Useful improvements now available in this plugin include:
- global/per-survey
Enableswitch for notifications - HTML-safe rendering when using
ParseMode = HTML - plain
Textmode without Telegramparse_mode - extra URL placeholders for common survey/response actions
- mustache placeholders for survey question/answer/raw values
The image below is a locally generated preview of a rendered Telegram message using sample data:
- Copy the LSTelegramNotify folder to the Limesurvey "plugins" directory.
- Go to
LSTelegramNotifyfolder - Run
composer install --no-devinside of folderLSTelegramNotify(only the runtime dependency is needed to run the plugin) - Activate the plugin at the Limesurvey plugin manager (requires proper user rights for accessing the feature at the Limesurvey admin interface).
- Configure the plugin at the settings page
The linters, static analysis and test tools are managed as isolated
composer-bin sets. After
composer install, pull them with:
composer tools:install
You can then run composer test:unit, composer psalm and composer cs:check.
These placeholders work in both legacy and mustache syntax:
{title}/{{title}}{surveyId}/{{surveyId}}{responseId}/{{responseId}}{urlPDF}/{{urlPDF}}{urlSurvey}/{{urlSurvey}}{urlDetails}/{{urlDetails}}{urlEdit}/{{urlEdit}}{urlExport}/{{urlExport}}{urlAttachments}/{{urlAttachments}}
When ParseMode is HTML, all placeholder values are escaped before rendering so survey content cannot break the markup.
Use field codes in mustache syntax to inject survey questions and responses:
{{field:FIELD_CODE.question}}{{field:FIELD_CODE.answer}}{{field:FIELD_CODE.raw}}
Shorthand aliases are also available:
{{FIELD_CODE}}{{FIELD_CODE_answer}}{{answer_FIELD_CODE}}{{raw_FIELD_CODE}}
The global plugin settings screen documents the available placeholders directly in the UI:
You can add custom settings by survey to send the messages to other groups, customize the text and change other settings.
- Go to survey settings
- GO to
Simple plugins - Define your custom settings at
Settings for plugin LSTelegramNotify

