diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -18,7 +18,11 @@ BOT_PORT = int(config["API"]["BOT_PORT"]) | |||
18 | 18 | ||
19 | MEDIA_GROUP_TIMEOUT = 3 | 19 | MEDIA_GROUP_TIMEOUT = 3 |
20 | 20 | ||
21 | FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) | 21 | FEDI_LOGIN, \ |
22 | WAIT_VISIBILITY, \ | ||
23 | DELAYED_CHECKIN, \ | ||
24 | WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, \ | ||
25 | ADD_MEDIA, ADD_COMMENT = range(8) | ||
22 | 26 | ||
23 | MAIN_MENU = ReplyKeyboardMarkup([ | 27 | MAIN_MENU = ReplyKeyboardMarkup([ |
24 | [KeyboardButton(text="Check-in here", request_location=True)], | 28 | [KeyboardButton(text="Check-in here", request_location=True)], |
@@ -46,5 +50,10 @@ class MsgDict(TypedDict): | |||
46 | 50 | ||
47 | KEY_TOOT_STATUS_ID = "toot_status_id" | 51 | KEY_TOOT_STATUS_ID = "toot_status_id" |
48 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" | 52 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" |
53 | KEY_IS_SCHEDULED_TOOT = "is_scheduled_toot" | ||
49 | 54 | ||
50 | BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] | 55 | # TODO: |
56 | # use the first scope as default | ||
57 | # if user set delayed post, ask user consent and request OAuth token again | ||
58 | # DEFAULT_BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] | ||
59 | BOT_SCOPE = ['read:accounts', 'read:statuses', 'write:media', 'write:statuses'] | ||