diff options
author | clarkzjw <[email protected]> | 2023-02-22 00:26:18 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-22 00:26:18 -0800 |
commit | 0590292da6eec52e6f569749037c8f8f7bdd948e (patch) | |
tree | bf4a2f875dd96ad5a0cea3972e682680531aa50b /callback.py | |
parent | 97735d9e3d7b2d52572df736d8ab0778db8b7024 (diff) | |
download | swarm2fediverse-0590292da6eec52e6f569749037c8f8f7bdd948e.tar.gz |
add custom webhook example
Diffstat (limited to 'callback.py')
-rw-r--r-- | callback.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/callback.py b/callback.py index 687508a..a7f7181 100644 --- a/callback.py +++ b/callback.py | |||
@@ -1,14 +1,16 @@ | |||
1 | import io | 1 | import io |
2 | from typing import cast, List | ||
3 | |||
4 | from telegram import ReplyKeyboardRemove | ||
5 | from telegram.constants import ChatAction | ||
6 | from telegram.error import BadRequest | ||
7 | from telegram.ext import CallbackContext | ||
8 | |||
9 | from command import * | ||
10 | from dbstore.dbm_store import get_loc | ||
2 | from foursquare.poi import OSM_ENDPOINT | 11 | from foursquare.poi import OSM_ENDPOINT |
3 | from foursquare.poi import query_poi | 12 | from foursquare.poi import query_poi |
4 | from dbstore.dbm_store import get_loc | ||
5 | from toot import mastodon_client | 13 | from toot import mastodon_client |
6 | from command import * | ||
7 | from typing import cast, List | ||
8 | from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardRemove | ||
9 | from telegram.ext import ContextTypes, ConversationHandler, CallbackContext | ||
10 | from telegram.constants import ParseMode, ChatAction | ||
11 | from telegram.error import BadRequest | ||
12 | 14 | ||
13 | 15 | ||
14 | async def callback_skip_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: | 16 | async def callback_skip_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: |