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 --- toot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 toot.py (limited to 'toot.py') diff --git a/toot.py b/toot.py new file mode 100644 index 0000000..f1db858 --- /dev/null +++ b/toot.py @@ -0,0 +1,11 @@ +from mastodon import Mastodon +from config import TOOT_API_BASE_URL, TOOT_CLIENT_SECRET, TOOT_ACCESS_TOKEN, TOOT_CLIENT_ID + +''' +https://mastodonpy.readthedocs.io/en/stable/index.html +''' + +mastodon_client = Mastodon(client_id=TOOT_CLIENT_ID, + client_secret=TOOT_CLIENT_SECRET, + api_base_url=TOOT_API_BASE_URL, + access_token=TOOT_ACCESS_TOKEN) -- cgit v1.2.3