πŸ“ˆ Track top meme coin prices with Telegram Bot and CoinGecko API

⚑ 1,334 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

Platform: n8n (Telegram Bot Integration) Purpose: Let users fetch top meme coin prices in real-time using a simple /memecoin Telegram command How It Works (Logic Breakdown) This flow listens for a Telegram command and fetches data from the CoinGecko API to respond with live memecoin prices.

πŸ”Ή 1. Telegram Trigger Node Listens for incoming Telegram messages from users.

Activated when a message is sent in a Telegram chat connected to the bot.

Passes the raw message (e.g., /memecoin) to the next node.

πŸ”Ή 2. IF Node – Check if Message is /memecoin Condition: {{$json[β€œmessage”][β€œtext”]}} === β€œ/memecoin”

If true ➝ continue to fetch data from CoinGecko.

If false ➝ nothing happens.

πŸ”Ή 3. HTTP Request – Fetch Meme Coins from CoinGecko API: https://api.coingecko.com/api/v3/coins/markets?…category=meme-token

Fetches top 5 meme tokens by market cap.

Data includes:

Name

Symbol

Current price (USD)

Coin ID (for URL linking)

πŸ”Ή 4. Function Node – Format the Message Parses the JSON response from CoinGecko.

Builds a clean message like:

ruby Copy Edit πŸš€ Dogecoin (DOGE) πŸ’° Price: $0.123 πŸ”— More: https://www.coingecko.com/en/coins/dogecoin Loops through top 5 meme coins and adds line breaks.

πŸ”Ή 5. Telegram Send Node – Reply to User Sends the formatted message to the original chat.

Uses chat_id from the trigger to ensure correct user receives it.

πŸ–Ό Sample User Flow πŸ‘€ User types /memecoin in Telegram bot

πŸ€– Bot fetches meme coin prices

πŸ“¬ Bot replies with live prices + links

πŸ”— Nodes Used

Function, HTTP Request, Telegram, Telegram Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup