> For the complete documentation index, see [llms.txt](https://alphabot-docs.gitbook.io/alphabot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alphabot-docs.gitbook.io/alphabot/raffles/post-raffle-to-telegram.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://alphabot-docs.gitbook.io/alphabot/raffles/post-raffle-to-telegram.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
