> For the complete documentation index, see [llms.txt](https://docs.leap-blockchain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.leap-blockchain.com/leap-trading-sol-bot/leap-trading-bot-setup/telegram-auto-buyer.md).

# Telegram Auto Buyer

<figure><img src="/files/NyF8tpiCxc4RrffDPWPX" alt=""><figcaption></figcaption></figure>

### Accounts & IDs

* **Telegram Account**: Select the account name from the drop down. You will need to set these up in advance in the accounts section.
* **Topic ID**: Insert the Topic ID if you want to monitor a specifc Topic on Telegram.
* **Channel ID**: Insert the Channel ID for the Telgram Channel you want to Monitor.
* **Note**: If you want to run the Topic ID you will need to add both the related channel and Topic ID.
* **User IDs**: Use this if you only want to buy coins from a specific user or users on Discord.
* **User ID Blacklist**: If you want it to ignore calls from certain users.

**Target Channel Instructions:**

If you're using a channel as the target, the bot will monitor it for any contract posts. If the chat is **unlocked**, it's best to **wait until just before drop time or after it gets locked** to avoid interacting with fake contracts.

To retrieve the Channel ID, open telegram via web browser - [https://web.telegram.org](https://web.telegram.org/) and do the following:

1. Navigate to the channel.
2. Look at the URL — it will contain a sequence of numbers that start with -, it can be something like `-100` or `-214`.
3. **Remove the dash (-)** (e.g., `-2143108337`becomes `2143108337`).
4. You can also paste the channel URL directly into the bot and it will work out the ID - E.G. Input <https://web.telegram.org/k/#-3086204970>

To find the **topic ID**:

1. Enter the topic in the channel.
2. Click **"View Topic Info"**.
3. The URL will look like this: `https://t.me/c/2205123457/33636`.
   * The **channel ID** is the number before the last slash.
   * The **topic ID** is the number after the last slash.

Using the example above, enter this in the Task's Channel ID field:\
`2205123457/33636`

To Find **User IDs:**\
**1.** Add our telgram bot to your telegram [**https://t.me/leaptrading\_bot**](https://t.me/leaptrading_bot)\
**2.** Forward a message from any user to our bot\
**3.** Our bot will show the User ID for that user\
&#x20;

<figure><img src="/files/BfvQZ3GMwOL0wzYl9c8v" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/EwDyuTczlnIxxMCMcwvg" alt=""><figcaption></figcaption></figure>

### Message Content Filters

Use keyword filters to control which Discord messages can trigger a buy. This helps you avoid spam or force buys only when a post includes specific signal terms.

**Message Content blacklist**

* Add words or phrases you want to **block**.
* If a message contains **any** blacklist item, the task will **skip** it.
* Add multiple entries by clicking **Add blacklist word**.

**Message Content whitelist**

* Add words or phrases a message **must include** for the task to buy.
* If the whitelist is **empty**, all messages are allowed (unless blocked by the blacklist).
* Add multiple entries by clicking **Add whitelist word**.

**Task Name**: Enter the name for this task.

<figure><img src="/files/GnZa2Br6WCtZYHbgP55R" alt=""><figcaption></figcaption></figure>

**Wallet**: Select the wallet you want to use for this task.

### Platforms & Sell Behaviour

* **Buy Raydium**: Allow trades on Raydium.
* **Buy Pumpfun**: Allow trades on Pump.fun and Pump Swap.
* **Buy Meteora**: Allow trades on Meteora.
* **Use Filtred API:** If you have their API added in settings you will be able to add it here
* **Listen To Bots**: Allow the task to react to messages from bots on Telegram
* **Don't Sell**: Do not sell the token. Your sell logic will not run while this is enabled.
* **Buy Once**: Only buy the first time the source posts a token; ignore subsequent mentions

### **Transaction Details**

**Buy Amount (SOL)**: Fixed SOL you want to spend on each buy.

**Buy Wallet %**: Spend a percentage of your current wallet balance per buy (useful when your balance changes). Use this instead of a fixed **Buy Amount** if you prefer sizing by percentage.

<figure><img src="/files/5YtmGr7XfmFoZZ4qgXDY" alt=""><figcaption></figcaption></figure>

### Verification

Once you click **Start Task** you will be prompted to inser the verification code sent to your Telegram account.\
When complete the bot will save your session so you automcatically login each time.
