Skip to content
Snippets Groups Projects
Verified Commit b96ffb95 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

use new upload api

parent 24e61612
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,8 @@ print(text)
# Nur abschicken, wenn es wirklich verlangt wird. Ansonsten nur in die Konsole schreiben
if args.doit is True:
print("\nSchick Nachricht an Twitter")
api.update_status_with_media("image.png", text, file=image)
media = api.media_upload(filename="poster.png", file=image)
api.update_status(status=text, media_ids=[media.media_id_string])
else:
print("\nProgramm läuft im Vorschaumodus. Es wird nichts an Twitter abgesendet.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment