A Telegram bot that monitors and reports Bitcoin price changes from Binance, with fun emoji indicators for price movements.
- Real-time Bitcoin price monitoring from Binance API
- Price updates every 30 seconds
- Price change percentage over 24 hours
- Dynamic emoji indicators:
- 🚀 for positive price movements (1-3 rockets based on % increase)
- 🧂 for negative price movements (1-3 salt shakers based on % decrease)
-
Create a Telegram bot and get your bot token from @BotFather
To get your
TELEGRAM_GROUP_CHAT_ID(for group chats):- Add the bot to your group
- Send a message in the group
- Access https://api.telegram.org/bot/getUpdates
- Look for the "chat" -> "id" field in the group message response Note: Group chat IDs are typically negative numbers
-
Set the environment variables:
export TELEGRAM_BOT_TOKEN=replace-token-here export TELEGRAM_GROUP_CHAT_ID=replace-group-chat-id-here
-
run
go run main.go