From ae99c2d7237021e2abb20d4b41a24e0b73028519 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 22 Feb 2023 14:01:16 -0800 Subject: bot: support Mastodon OAuth2 login test callback test mastodon callback test callback clean customwebhook example bot: test oauth login test callback url test callback --- config.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config.py') diff --git a/config.py b/config.py index a412784..7ae0c21 100644 --- a/config.py +++ b/config.py @@ -20,7 +20,7 @@ DEFAULT_TOOT_VISIBILITY = "private" MEDIA_GROUP_TIMEOUT = 3 -WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(5) +FEDI_LOGIN, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(6) MAIN_MENU = ReplyKeyboardMarkup([ [KeyboardButton(text="Check-in here", request_location=True)], @@ -42,3 +42,11 @@ class MsgDict(TypedDict): KEY_TOOT_STATUS_ID = "toot_status_id" KEY_TOOT_STATUS_CONTENT = "toot_status_content" + +MASTODON_CLIENT_ID_FILE = "mastodon.client_id" + +TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" +HEALTHCHECK_URL = "/checkinbot/healthcheck" +FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" +BOT_DOMAIN = "https://zjw.social" +BOT_PORT = 30010 -- cgit v1.2.3