diff options
author | clarkzjw <[email protected]> | 2023-02-20 13:47:26 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-20 13:47:26 -0800 |
commit | f7f99f41e768e6740adbf2ee708488b29fe6265a (patch) | |
tree | 125b6ec833af57b2ec1813309506dbe6b791b35f /mastodon/toot.py | |
parent | 3a230798be1bc63b363cf75b8b1cae3a508cca84 (diff) | |
download | swarm2fediverse-f7f99f41e768e6740adbf2ee708488b29fe6265a.tar.gz |
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
Diffstat (limited to 'mastodon/toot.py')
-rw-r--r-- | mastodon/toot.py | 21 |
1 files changed, 0 insertions, 21 deletions
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 @@ | |||
1 | from mastodon import Mastodon | ||
2 | |||
3 | ''' | ||
4 | https://mastodonpy.readthedocs.io/en/stable/index.html | ||
5 | |||
6 | Mastodon.create_app( | ||
7 | 'pytooterapp', | ||
8 | api_base_url = 'https://mastodon.social', | ||
9 | to_file = 'pytooter_clientcred.secret' | ||
10 | ) | ||
11 | ''' | ||
12 | |||
13 | # mastodon = Mastodon(client_id = 'pytooter_clientcred.secret',) | ||
14 | # mastodon.log_in( | ||
15 | # '[email protected]', | ||
16 | # 'incrediblygoodpassword', | ||
17 | # to_file = 'pytooter_usercred.secret' | ||
18 | # ) | ||
19 | |||
20 | mastodon = Mastodon(access_token = 'pytooter_usercred.secret') | ||
21 | mastodon.toot('Tooting from Python using #mastodonpy !') \ No newline at end of file | ||