from mastodon import Mastodon mastodon = Mastodon( access_token = 'riY0Y4oyCIiHjEuNMSvEQTDKgT2gYsbTSAkeUpsG-Ps', api_base_url = 'https://metu.life/' ) file = open("kafe.txt", "r") yemek = file.read() if len(yemek) > 8: mastodon.status_post(yemek)