--- title: "[bojemoi-telegram] telegram: add Twitter/X integration — /tweet command via API v2" date: 2026-03-01T19:08:58+01:00 draft: false tags: ["commit", "bojemoi-telegram", "master"] categories: ["Git Activity"] summary: "Commit 57fd2a5 par Betty dans bojemoi-telegram" author: "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 ### 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(+) ```