# Post Raffle to Telegram

{% hint style="warning" %}
The Telegram bot first needs to be set up in your channel or group (see [Telegram Bot Setup](/alphabot/the-bot/telegram-bot/telegram-bot-setup.md)) and it has to be successfully connected to your Alphabot team (see [Team Socials](/alphabot/for-teams/setting-up-your-team/team-socials.md#telegram-channels-and-groups)).
{% endhint %}

When creating a raffle, you have the option to enable `Connect Telegram Bot` which will allow you to post an embedded message of the raffle to your connected Telegram channel or group. If the auto-announce raffle is enabled, the bot will automatically post the raffle into your selected channel/group - if not, you'll have to manually trigger it in the raffle settings.

<img src="/files/IrSMy4j4Hszufixnpmpa" alt="" data-size="original">

There are two additional checkboxes, allowing you to automatically pin raffles (when posted) and un-pin raffles (when the end time is reached). In order for the auto (un)pin to work, the bot will need permission to do so - see [Telegram Bot Setup](/alphabot/the-bot/telegram-bot/telegram-bot-setup.md) for more.

Below is an example of what the embedded raffle message looks like on Telegram, with a button that allows users to enter the raffle without leaving Telegram, and a button to open up the raffle in a browser.

![](/files/wqPGFUY8E5ofxmXo1Dfd)


---

# 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://alphabot-docs.gitbook.io/alphabot/raffles/post-raffle-to-telegram.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.
