Bluesky DM to Telegram.
This script sends the last message from a specifiec Bluesky conversation with a Bluesky account to a Telegram bot.
Variables
The script expects the following variables:
WORKING_DIR="$(pwd)" # Can be change to whatever directory.
PDSHOST="" # If your not hosting your PDS it's probably "https://bsky.social".
BLUESKY_HANDLE="" # The handle of your Blueksy bot account, e. g. my-bluesky-bot.bsky.social.
BLUESKY_PASSWORD="" # Either your Bluesky bot account's password or it's app password (https://bsky.app/settings/app-passwords).
CONVO_ID="" # Conversation-ID of the BLuesky bot account, can be retriefed by using get_messages.
CHAT_ID="" # Chat-ID of the Telegram bot, see here: https://linuxscriptshub.com/send-telegram-message-linux-scripts.
TOKEN="" # Token for the Telegram bot, can be retreived from t.me/BotFather.