Skip to content

pivilartisant/arena-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Are.na Telegram Bot

A simple Telegram bot that fetches and shares content from an Are.na channel. It provides latest blocks, random blocks, and channel info.


๐Ÿš€ Features

  • /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

๐Ÿ› ๏ธ Setup Instructions

1. Clone this Repository

git clone https://github.com/yourusername/arena-telegram-bot.git
cd arena-telegram-bot

2. Install Dependencies

bun install

3. Create a .env File

Create a .env file in the root directory with the following contents:

TOKEN=your_telegram_bot_token
CHANNEL_NAME=your_arena_channel_slug
  • TOKEN: Your Telegram bot token from BotFather
  • CHANNEL_NAME: The slug of your Are.na channel (e.g. creative-inspiration)

4. Run the Bot

bun run ArenaTelegram.ts

๐Ÿ“ฆ Built With

  • grammy โ€“ Telegram bot framework
  • Are.na API โ€“ To fetch channel content

๐Ÿง  Notes

  • 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.

About

Get daily are.na blocks from your favourite channel using this minimal telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published