# Adding a bot to a group chat in Telegram

In order to add a bot to a group chat, you need to:

1. **Make sure the bot can be added to group chats.**\
   To do this, go to BotFather and select your bot settings: Bot Settings -> Allow groups?

<figure><img src="https://lh5.googleusercontent.com/WXDVzN7r3Oz2nm4RTPsAymX5ns8vmyt48-zDQeHD9jTZNW1tNJJjxw0L2WWH9s_gRl_ZfuQ3FPaRxWGN0pJn1P_uMuOKnxFCPlxqQZHTy6Et8SfwtLoYXZEkC7WcKumK89awAp0DrtMwfP4mr_7nDK67asXmwS45DfvcJlyLZ18V-GYia9pa1C5o2A" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh3.googleusercontent.com/-4EdDmvgPzt9l4Zc1TaR5x9T8TPupj7KpvCC2iDOov-CQ-hVjR7NdlaR10JefveNmTEB-TzH1s7avY8yRKTjv3lZVSFANmJHKXI_rFIZFsemsVkX9ZHoJJYp7GWghWQTskUVg1ztzrn3eHuZfYfQtkSCzgrKvIHV1A-fEv8hfs6eBsVHGWaJKbRaIg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FwtNGzR1F7BgL23QkxLEN%2Fimage.png?alt=media&#x26;token=56c39bd4-7de0-4d69-b038-144db1741118" alt=""><figcaption></figcaption></figure>

2\. **Check the status of the “Privacy mode” setting.**\
Pay attention to the setting “Privacy Mode” (Group Privacy).&#x20;

<figure><img src="https://lh6.googleusercontent.com/P68SQT2VQnUlHWjllrWkP518JEd9E3HMakGP_dFUKh_vBPkspVRCuUqgQzR_-iXFcm8cwvrwodwRL-RqzR0jWXk2B2Y7XgBZjXQWRlG37n0Q7vG3ZHGs-h-fsebgy13Iic_11AZbK07WQunoHTm8RfttaUl90Bw40w5wOOH6I3KFCgNJpQlp1rh5kQ" alt=""><figcaption></figcaption></figure>

By default, privacy mode is enabled, and the bot in a conversation will only respond to certain messages:&#x20;

* Messages starting with '/'&#x20;
* Bot's own messages&#x20;
* Service messages (people added or removed from the group, etc.)&#x20;
* Messages from the channels he belongs to&#x20;

You can read more about this feature [here](https://core.telegram.org/bots#privacy-mode).&#x20;

{% hint style="info" %}
If you want the bot to respond to all messages, turn off the privacy mode: in the “Privacy mode is enabled” state, click the “Turn off” button.
{% endhint %}

<figure><img src="https://lh3.googleusercontent.com/YZOxdnXRrg7oxzjLAUg3BJSxZa2_3DbOdFU1xmEnfkybl9jxbu-48izCB_16HIQUsuqJW9sO7dqbX_jnyEfuFELGiwr2x_NupPs_ugbrThdCRakBKWFeKtd41EUYEX1nqHIYTbB8cphSv782ggUVHarMx5ehIb5f9M4uxOTF2mE_XSQ40JVUt3mFrA" alt=""><figcaption></figcaption></figure>

3\. **The bot must be an admin in the group chat.** There are two options here:&#x20;

* Add a member and elevate their privileges:

<figure><img src="https://lh4.googleusercontent.com/F-jAt04MmXIBf_rif11hTCYIhI_Gq7MRrQpEe8IDZ6I_s_tWySrOJMbzRv4a8NdecMU-SY4Q6NxzXqrycfIPgzRqR1keuJZK9xp440q2AOBrZ07PHSeFevwsU3EhK4oXyiyP6QgTO4gCeyXWC_vzd23HkBcTM26V1XgT8NO3vnUOAdm9v3XeBEZqiQ" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/9wHdKp3io7yZrt1aH9BFwqv3X-7FzQClD059cylVwqPtPMn9ql4PcQnSK8DdbNjheHmY4vvTFdaKjPCaZOKzIuOjmXs6gBCF_rL8ub28JJwwmVLjvbywUKzf69N64Ect1QHdqtZXbpPRIAPvO0gmL7gLEXL7I_RfmH2Y3ElHGaHmfqj4RDNnGcCwOA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/rYo-lLWgEhBz05Qgp-_ylMsyQy4zPZ3RH8s82vcDcIiPiiI9_1jW3vquZnpbbgIvY3mojAJ-UndHR0T0G8e6sOugYBHWxvFKcLs4nly0tZbk0v4t4SLxxefroE5LgIa9LQZqiXD-avzwKD2C_nOWOLGTx3l90mlBU3q3se3wKaPzXmSm7yEvwQ1lAA" alt=""><figcaption></figcaption></figure>

* Immediately make the admin (the minus of this option is that if the group is non-public, the bot will not appear in the search).

<figure><img src="https://lh3.googleusercontent.com/McNhJdPnFduHe-0OV9wN-rzr73NyWOJAXO_ILfigMwcanBxMA5AplAkfY7vjnLxYtxEhd9ylhPhx4-OcH15jduRHAm0oB5tFV1H4W3taBCrUBP1KYIUEKqwSSAfK5heDY0hzaYAiKOoYblhX31X_DSuMKN4cuteWBB946WizRgVkMJGOHyf8oHSbuQ" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/x4LeYuUkkQWVf_2OUZUsiyv7naATt6qIKF2n8u75TTDiuCTpWvI3iHPRA1TOw-35sNsFNfpYr1GGGUAwuQioI4Nf5ZQdterMMtg1CSTMpIMTYEvcyh9j7UjRzR1_U9DC9kcI4Urts6u_mINuHdxv9vgRvcHYsZidd_u-0Scm_y2K99EKbQjl-8X-Pw" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/Mqu0yz4fs0yEUhFV91eKlN-z7oHKWYmPOJMEJNHEGMXG83q-FgCzARvLP-bl6rQv2NEAdhMCzWw_U_YrDj3trbsKFHcbgAot3-Xyg-6qNqbskmUTtzYtzokE8vxZ2kKZqJZYSoDmkqiApoxd8_lKz-SHGMimJAil0917oqFIXp5xwJp0HsLUeZBjkg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/rYo-lLWgEhBz05Qgp-_ylMsyQy4zPZ3RH8s82vcDcIiPiiI9_1jW3vquZnpbbgIvY3mojAJ-UndHR0T0G8e6sOugYBHWxvFKcLs4nly0tZbk0v4t4SLxxefroE5LgIa9LQZqiXD-avzwKD2C_nOWOLGTx3l90mlBU3q3se3wKaPzXmSm7yEvwQ1lAA" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Excellent! Your bot is now working in a group chat!
{% endhint %}

<figure><img src="https://lh5.googleusercontent.com/xXZmXtE7TGlXq4AMgK1aShJCo0TxaFofzjvEMrBqPMN_3VUu--wtMPtBfLGaUNpyqteSy2QBYyRt5a4sW99J7CaIXlRvSqhlhInzIx_w0Ub5zgyYH3m6aGRVBB5o1_nDzKuwIDxVpwXiC71Fgy7DPphEhZiMoI-6wYncT8Him20t8dYfSvp3Hf4btg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/joGSt1p4URoLwDcElM4F9Wu15JmbKd43c1TWU4FFsr0tp1clvAloTWBqvLk-sYMSwnu6rMqgwAkfEecLy9H7FrWdZXezmao7yqyaSwSvlJ74IaU7QivRYoabIEI-UoYWaPsiODgDcuJ3jWk-rEEWFRpNf0nQwJ-Cl7WyEsPPZ_xXRs-ZF0AgsuexZg" alt=""><figcaption></figcaption></figure>
