<metaproperty="description"content="Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.">
<metaproperty="og:description"content="Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.">
<p>Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.</p>
<p>Native antispam functionality can be enabled for <ahref="/api/channel">supergroups</a> using <ahref="/method/channels.toggleAntiSpam">channels.toggleAntiSpam</a>, if the supergroup has at least <code>telegram_antispam_group_size_min</code> members, as specified by the <ahref="/api/config#client-configuration">client configuration parameters</a>.</p>
<p>Once enabled, Telegram's native antispam system will start monitoring the supergrup, automatically deleting spam messages using the official Telegram Antispam bot, with ID equal to <code>telegram_antispam_user_id</code>, as specified by the <ahref="/api/config#client-configuration">client configuration parameters</a>.<br>
Note that this bot <strong>does not</strong> have to be added as participant or admin to the supergroup for the native antispam system to work, just invoking <ahref="/method/channels.toggleAntiSpam">channels.toggleAntiSpam</a> is enough; however, it should still be locally shown as a group admin when displaying the admin list to the user (clients should simply append it to the admin list <em>without</em> invoking <ahref="/method/channels.editAdmin">channels.editAdmin</a>). </p>
<p>False positive message deletions can be reported by admins by navigating through the <ahref="/api/recent-actions">admin log</a>, and invoking <ahref="/method/channels.reportAntiSpamFalsePositive">channels.reportAntiSpamFalsePositive</a> for mistaken <ahref="/constructor/channelAdminLogEventActionDeleteMessage">channelAdminLogEventActionDeleteMessage</a> events made by the <code>telegram_antispam_user_id</code> bot.</p></div>
</div>
</div>
</div>
<divclass="footer_wrap">
<divclass="footer_columns_wrap footer_desktop">
<divclass="footer_column footer_column_telegram">
<h5>Telegram</h5>
<divclass="footer_telegram_description"></div>
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.