🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 3 Min Lesezeit
0

I Built an Open-Source Telegram Bot for the OpenAI Codex Referral Promo

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

OpenAI dropped Codex referral links on June 12. Seven days of free Codex Pro for you, seven days for a friend. The catch? Each referral code can only be used once. Post your link on social media and the first person to click it claims it — everyone else gets "this referral has already been used." One shot, gone.



That's a poor user experience. And it's wasteful: every unused referral is a missed opportunity for someone who actually wants to try Codex.



So I built @codexHuddbot — a Telegram bot that solves the one-shot matching problem.






How it works



A user sends their Codex referral link to the bot. The bot stores it in a queue. When another user asks for a referral, the bot dequeues the oldest link, marks it as claimed, and sends it privately. No public link dumps. No race conditions. No wasted referrals. One-to-one matching, on demand.



The bot handles duplicates (you can't submit the same link twice), tracks which links have been consumed, and provides a /status command.






Architecture: boring tech, fast delivery



I wanted something that could ship in an afternoon and run reliably for the two-week promo window.





  • buddy-server: A ~500-line Python aiohttp server on a VPS behind nginx with a self-signed certificate. REST API for submitting and claiming referrals, backed by SQLite. No ORM, no migrations, no Docker — just pip install aiohttp and systemctl start codex-buddy. This is the live, running component.


  • buddy-bot: A Cloudflare Worker (free tier) planned to proxy between Telegram's Bot API and the buddy-server — keeping the server's IP hidden and handling webhook requirements. Currently the bot uses Telegram polling directly; the Worker is the next step.


  • codex-reset: A companion CLI that consumes "banked" rate-limit reset credits via the OpenAI Codex wham/rate-limit-reset-credits/consume endpoint. For Linux and headless users who never see the in-editor popup — they'd otherwise leave those credits unused.



~500 lines of application code. Two repos, MIT-licensed.






Why open source?



The promo ends June 24. After that, the bot's core function retires. But the architecture — a lightweight Python aiohttp server behind nginx, backed by SQLite — is reusable for any time-limited Telegram bot. The code is clean enough to serve as a reference, and the referral-matching logic is a simple queue pattern you can adapt.






Try it





Both MIT-licensed. Stars, issues, and PRs welcome. The promo ends June 24 — if you've got an unused referral link, now's the time to share it.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Header and Footer not showing in Excel
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I Built an Open-Source Telegram Bot for the OpenAI Codex Referral Promo

Thematisch verwandte Begriffe: Built, OpenSource, Telegram, OpenAI · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...