From aff676c354264f8b550c6ade3483a170a94c15c9 Mon Sep 17 00:00:00 2001 From: Betty Date: Sun, 1 Mar 2026 19:08:58 +0100 Subject: [PATCH] post: commit 57fd2a5 in bojemoi-telegram --- .../commits/2026-03-01-commit-57fd2a5.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 content/posts/commits/2026-03-01-commit-57fd2a5.md diff --git a/content/posts/commits/2026-03-01-commit-57fd2a5.md b/content/posts/commits/2026-03-01-commit-57fd2a5.md new file mode 100644 index 0000000..04b20f6 --- /dev/null +++ b/content/posts/commits/2026-03-01-commit-57fd2a5.md @@ -0,0 +1,51 @@ +--- +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(+) +```