halcy / Mastodon.py

Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
MIT License
867 stars 150 forks source link

[Question] scheduling posts and replies #370

Closed zcutlip closed 5 months ago

zcutlip commented 5 months ago

Hi there; thanks for making Mastodon.py! It's been really easy to use for my project. Apologies for opening an issue just to ask questions.

I'm trying to figure out how to schedule posts and replies (i.e. threads), and I have a few questions

halcy commented 5 months ago

Hi!

no problem, this is a reasonable use of the bug tracker imo.

1) the latter will work, Mastodon.py is timezone aware and will convert to the correct representation to send to the server (utc, iso formatted string) internally.

2) you get an id that you can use to e.g. unschedule the status, but it’s not the final status id, which I believe is only assigned when the status is creates. I don’t think scheduling reply chains is supported currently on masto side, but you could ask the masto devs about it. Otherwise you’d have to do your scheduling locally yourself.

zcutlip commented 5 months ago

Okay, thank you for the clarification on both!