# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.botdistrikt.com/messaging-channels/twitter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
