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.