A simple Telegram bot that fetches and shares content from an Are.na channel. It provides latest blocks, random blocks, and channel info.
/start– Show inline options/info– Get block count of the Are.na channel/read– Fetch and display the latest blocks/random– Get a random block
Auto-posts:
- 🕛 Latest blocks every 12 hours
- 🎲 Random block every 6 hours
git clone https://github.com/yourusername/arena-telegram-bot.git
cd arena-telegram-botbun installCreate a .env file in the root directory with the following contents:
TOKEN=your_telegram_bot_token
CHANNEL_NAME=your_arena_channel_slugTOKEN: Your Telegram bot token from BotFatherCHANNEL_NAME: The slug of your Are.na channel (e.g.creative-inspiration)
bun run ArenaTelegram.ts- grammy – Telegram bot framework
- Are.na API – To fetch channel content
- The bot fetches and posts blocks based on creation date.
- Scheduled tasks are automatically set when the bot starts.
- For group chats make sure the bot is added to the group and has permission to send messages.