Update Scripts/bluesky-dm-to-telegram.sh
Remove debug function to create post.
This commit is contained in:
@@ -23,14 +23,6 @@ create_session() {
|
|||||||
-d '{"identifier": "'"$BLUESKY_HANDLE"'", "password": "'"$BLUESKY_PASSWORD"'"}'
|
-d '{"identifier": "'"$BLUESKY_HANDLE"'", "password": "'"$BLUESKY_PASSWORD"'"}'
|
||||||
}
|
}
|
||||||
|
|
||||||
# DEBUG: Erstelle Post
|
|
||||||
create_post() {
|
|
||||||
curl -X POST $PDSHOST/xrpc/com.atproto.repo.createRecord \
|
|
||||||
-H "Authorization: Bearer $ACCESS_JWT" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{\"repo\": \"$BLUESKY_HANDLE\", \"collection\": \"app.bsky.feed.post\", \"record\": {\"text\": \"Hello world! I posted this via the API.\", \"createdAt\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Hole alle Nachrichten
|
# Hole alle Nachrichten
|
||||||
get_messages() {
|
get_messages() {
|
||||||
curl -s "https://api.bsky.chat/xrpc/chat.bsky.convo.listConvos?limit=50" \
|
curl -s "https://api.bsky.chat/xrpc/chat.bsky.convo.listConvos?limit=50" \
|
||||||
|
Reference in New Issue
Block a user