<?xml version="1.0"?>
<rss version="2.0"><channel><title>Documentation: Content Discovery</title><link>https://invisiondevs.com/docs/content-discovery/?d=1</link><description>Documentation: Content Discovery</description><language>en</language><item><title>Telegram Notifications</title><link>https://invisiondevs.com/docs/content-discovery/telegram-notifications-r3/</link><description><![CDATA[<p>
	To receive Telegram notifications from your Invision community, you must have the <a href="https://invisioncommunity.com/files/file/9934-telegram-notifications/" rel="external nofollow">Telegram Notifications</a> app installed. Telegram notifications are sent from a bot, so you need to create one.
</p>

<p>
	<span style="font-size:20px;"><strong>Step 1 - Creating a bot in Telegram</strong></span>
</p>

<p>
	In the Telegram client, find the BotFather bot and send it the "/start" command, after which the bot will send you all possible commands to communicate with it. To create a new bot, you need send the "/newbot" command, then follow the further instructions and provide a name/title. After creating the bot, you will be shown the string "Use this token to access the HTTP API": This is what you need to specify in the settings in the ACP &gt; Community &gt; Telegram &gt; Settings API token of your Telegram bot.
</p>

<p>
	<span style="font-size:20px;"><strong>Installing a webhook</strong></span>
</p>

<p>
	In order for the bot to send notifications, you need to set up a webhook. To do this, compose a URL address and navigate to it in a browser:
</p>

<p>
	WARNING: this url must be encoded (url encode online in google.com).
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">https://api.telegram.org/bot{BOT_API}/setWebhook?url=https://{SITE_URL}/?app=telegram&amp;module=telegram&amp;controller=telegram</span></pre>

<p>
	After that, the following information should be displayed on the screen:
</p>

<pre style="background-color:#ffffff;color:#000000;font-size:14px;">{"ok":true,"result":true,"description":"Webhook was set"}</pre>

<p>
	<span style="font-size:20px;"><strong>Notification settings</strong></span>
</p>

<p>
	Notification options are enabled in the app, but not activated for all users at once. Therefore, you can make each notification event not as a suggested option, but enabled by default for all users.
</p>

<p>
	Each user will receive a notification in Telegram if two conditions are met:
</p>

<p>
	Enabled option in notifications settings (/notifications/options/).<br />
	The user's nickname is specified in "Your nickname in Telegram" on the same page.
</p>

<p>
	Setup completed!
</p>
]]></description><guid isPermaLink="false">3</guid><pubDate>Mon, 21 Nov 2022 06:22:35 +0000</pubDate></item></channel></rss>
