From f7f99f41e768e6740adbf2ee708488b29fe6265a Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 20 Feb 2023 13:47:26 -0800 Subject: implemented basic functions: - send a location from Telegram to bot - query a list (7) of POIs from Foursquare - send user inline keyboard button to choose a location - post toot status update to Mastodon with a link to OSM - store previously seen locations in local db --- mastodon/__init__.py | 0 mastodon/toot.py | 21 --------------------- 2 files changed, 21 deletions(-) delete mode 100644 mastodon/__init__.py delete mode 100644 mastodon/toot.py (limited to 'mastodon') diff --git a/mastodon/__init__.py b/mastodon/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/mastodon/toot.py b/mastodon/toot.py deleted file mode 100644 index 2d07f0b..0000000 --- a/mastodon/toot.py +++ /dev/null @@ -1,21 +0,0 @@ -from mastodon import Mastodon - -''' -https://mastodonpy.readthedocs.io/en/stable/index.html - -Mastodon.create_app( - 'pytooterapp', - api_base_url = 'https://mastodon.social', - to_file = 'pytooter_clientcred.secret' -) -''' - -# mastodon = Mastodon(client_id = 'pytooter_clientcred.secret',) -# mastodon.log_in( -# 'my_login_email@example.com', -# 'incrediblygoodpassword', -# to_file = 'pytooter_usercred.secret' -# ) - -mastodon = Mastodon(access_token = 'pytooter_usercred.secret') -mastodon.toot('Tooting from Python using #mastodonpy !') \ No newline at end of file -- cgit v1.2.3