Repost messages from telegram to mastodon.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
323 B

from mastodon import Mastodon
import settings
mastodon = Mastodon(client_id="app.secret", api_base_url=settings.HOMESERVER)
email = input("Email: ")
password = input("Password: ")
account_name = input("Account name (for use in config files): ")
mastodon.log_in(email, password, to_file=f"{account_name}-account.secret")