Skip to content

feat: Telegram Bot for Bounty Notifications (Closes #847)#1046

Open
muou0712 wants to merge 1 commit intoSolFoundry:mainfrom
muou0712:feat/bounty-847-telegram-bot
Open

feat: Telegram Bot for Bounty Notifications (Closes #847)#1046
muou0712 wants to merge 1 commit intoSolFoundry:mainfrom
muou0712:feat/bounty-847-telegram-bot

Conversation

@muou0712
Copy link
Copy Markdown

Implements the Telegram Bot for New Bounty Notifications from #847.

Closes #847

Wallet: 47HxQss7ctt6fFymSo8gevkYUWJPxieYFDG1eWQK7AjU

Summary

Complete Telegram bot that posts new bounties to channels with inline keyboard buttons for quick bounty details and claiming.

Components

  • scripts/telegram-bot.py: Full bot implementation (530 lines)
  • scripts/test_telegram_bot.py: 8 unit tests, all passing

Features

  • Real-time bounty posting to Telegram channels/groups
  • Inline keyboard buttons: View Details, Fork Repo, Claim Bounty, Ask Question
  • User subscription management per bounty type (categories, tiers)
  • SQLite-backed subscriptions and posted bounty tracking
  • Polling mode for development, webhook-ready for production
  • Beautiful HTML-formatted bounty messages with tier badges and reward info

Usage

# Run bot (polling mode)
python3 scripts/telegram-bot.py run

# Post specific bounty
python3 scripts/telegram-bot.py post --repo owner/repo --issue 123

# Subscribe to notifications
python3 scripts/telegram-bot.py subscribe --chat-id 123456 --categories backend,ai

User Commands

  • /subscribe [cat:backend,ai] [tier:1,2] - Subscribe to notifications
  • /unsubscribe - Unsubscribe
  • /status - Check subscription status

Complete Telegram bot that posts new bounties to channels with inline
keyboard buttons for quick bounty details and claiming.

Components:
- scripts/telegram-bot.py: Full bot implementation (530 lines)
- scripts/test_telegram_bot.py: 8 unit tests (all passing)

Features:
- Real-time bounty posting to Telegram channels/groups
- Inline keyboard buttons (View Details, Fork Repo, Claim, Ask)
- User subscription management per bounty type (categories, tiers)
- SQLite-backed subscriptions and posted bounty tracking
- Polling mode for development, webhook-ready for production
- Beautiful HTML-formatted bounty messages with tier badges
- Callback query handling for inline button interactions

Usage:
  python3 scripts/telegram-bot.py run
  python3 scripts/telegram-bot.py post --repo owner/repo --issue 123
  python3 scripts/telegram-bot.py subscribe --chat-id 123456 --categories backend,ai

Wallet: 47HxQss7ctt6fFymSo8gevkYUWJPxieYFDG1eWQK7AjU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T2: Telegram Bot for New Bounty Notifications

1 participant