Telegram templates ================== .. note:: This feature is only available in Tattler's `enterprise edition `_. +------------------------+----------------------------------------------------------------------------------------------------------+ | Address type | Telegram ID. Retrieve it e.g. with a `Telegram Login Widget `_. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Default gateway | `Telegram Bots API `_. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Encoding | Unicode. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Content type | Plain text, markdown or HTML. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Maximum content length | 4096 Latin characters. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Emojis | Only in HTML. | +------------------------+----------------------------------------------------------------------------------------------------------+ | Costs | None. | +------------------------+----------------------------------------------------------------------------------------------------------+ Telegram templates are similar to SMS templates. .. hint:: Telegram requires you to have a ``telegram id`` as the address of the recipient. You can retrieve this ID by integrating a `Telegram Login Button `_ on your website. If you want to notify an event via Telegram, add the ``telegram`` folder within the event folder, and its content into a text file named ``body`` within it:: templates_base/ └── mywebapp/ └── password_changed/ └── telegram/ <- Telegram vector └── body.txt <- content template .. caution:: The Telegram platform poses some requirements to deliver messages! - `Create a Telegram Bot `_ that will send messages to your users. - Users must authorize the bot before Telegram allows it to send them messages. They can do so by opening a chat the bot, or you can collect their authorization with a `Telegram Login button `_ .