> For the complete documentation index, see [llms.txt](https://docs.botdistrikt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.botdistrikt.com/messaging-channels/twitter.md).

# Twitter

{% hint style="danger" %}
Twitter has temporarily discontinued Twitter integrations due to modifications made by Twitter to its APIs. This includes limitations on the number of requests raised per minute, plus substantial pricing changes.
{% endhint %}

## Prerequisites

In order to integrate Twitter with your Bot, you will need the following:

* A [Twitter account](https://twitter.com) with Direct Messages access

### Direct Messages

In order for your bot to receive direct messages from anyone (including accounts it does not follow), the option must be enabled in Twitter’s settings. Go to Twitter’s [Direct Messages](https://twitter.com/settings/direct_messages) settings and check "Allow message requests from everyone". Be sure to save your changes!

![Twitter Permissions](/files/2nZHHzFn1X6rxntaI3SL)

Once this is done and you have Linked to Twitter, when a user sends a direct message (DM) to your Twitter account, your BotDistrikt bot will reply to them.

## Setup

From your bot account, go to **Integrations**

Select **Twitter**

![Twitter Integration](/files/MAMsQRQ7gnY4l6sKIuEu)

Click on **Sign in with Twitter**

![Sign in with Twitter](/files/NZiiEVHaI3uMWJRGtK5i)

Authorize BotDistrikt to access your account

<img src="/files/qsxR4w9kPDGoyX1k5rrs" alt="Authorize BotDistrikt" width="375">

You will be redirected to the BotDistrikt Twitter page.&#x20;

Your account details appear on the integration card.

Click on **Link to Twitter.**

![Sample Bot Integration with Twitter](/files/wN7ZdivHrQ1WW2g3dMZV)

Your bot is now live on your Twitter Account.

![Live Twitter Bot](/files/T2EPLYMZxrTaxlOk1Pgo)
