Files
blog/content/posts/commits/2026-03-01-commit-57fd2a5.md
Betty aff676c354
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled
post: commit 57fd2a5 in bojemoi-telegram
2026-03-01 19:08:59 +01:00

1.4 KiB

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[bojemoi-telegram] telegram: add Twitter/X integration — /tweet command via API v2 2026-03-01T19:08:58+01:00 false
commit
bojemoi-telegram
master
Git Activity
Commit 57fd2a5 par Betty dans bojemoi-telegram Betty

Commit 57fd2a5

Repository bojemoi-telegram
Branch master
Author Betty
Hash 57fd2a5bd70e596843b838a36a0e0a5f24ac4c11

Description

  • integrations/twitter_x.py: TwitterXClient (post_tweet, post_thread) via tweepy OAuth 1.0a
  • config.py: read TWITTER_API_KEY / SECRET / ACCESS_TOKEN / ACCESS_TOKEN_SECRET from secrets or env
  • bot.py: /tweet command posts to @Bojemoi_Lab, returns tweet URL
  • requirements.txt: add tweepy>=4.14.0

Credentials (TWITTER_API_KEY etc.) set in .env — bot gracefully disabled if missing.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

M	telegram-bot/bot.py
M	telegram-bot/config.py
M	telegram-bot/integrations/__init__.py
A	telegram-bot/integrations/twitter_x.py
M	telegram-bot/requirements.txt

Diff Summary

 telegram-bot/bot.py                    | 37 ++++++++++++++++++
 telegram-bot/config.py                 |  6 +++
 telegram-bot/integrations/__init__.py  |  6 +++
 telegram-bot/integrations/twitter_x.py | 70 ++++++++++++++++++++++++++++++++++
 telegram-bot/requirements.txt          |  3 ++
 5 files changed, 122 insertions(+)