aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 00:26:18 -0800
committerclarkzjw <[email protected]>2023-02-22 00:26:18 -0800
commit0590292da6eec52e6f569749037c8f8f7bdd948e (patch)
treebf4a2f875dd96ad5a0cea3972e682680531aa50b /callback.py
parent97735d9e3d7b2d52572df736d8ab0778db8b7024 (diff)
downloadswarm2fediverse-0590292da6eec52e6f569749037c8f8f7bdd948e.tar.gz
add custom webhook example
Diffstat (limited to 'callback.py')
-rw-r--r--callback.py16
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 @@
1import io 1import io
2from typing import cast, List
3
4from telegram import ReplyKeyboardRemove
5from telegram.constants import ChatAction
6from telegram.error import BadRequest
7from telegram.ext import CallbackContext
8
9from command import *
10from dbstore.dbm_store import get_loc
2from foursquare.poi import OSM_ENDPOINT 11from foursquare.poi import OSM_ENDPOINT
3from foursquare.poi import query_poi 12from foursquare.poi import query_poi
4from dbstore.dbm_store import get_loc
5from toot import mastodon_client 13from toot import mastodon_client
6from command import *
7from typing import cast, List
8from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardRemove
9from telegram.ext import ContextTypes, ConversationHandler, CallbackContext
10from telegram.constants import ParseMode, ChatAction
11from telegram.error import BadRequest
12 14
13 15
14async def callback_skip_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: 16async def callback_skip_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int:
Powered by cgit v1.2.3 (git 2.41.0)