fix allowing telegra.ph
This commit is contained in:
+1
-1
@@ -216,7 +216,7 @@ def default_query(inline_query):
|
||||
if phrase.casefold().startswith(q) or ' ' + q in phrase.casefold():
|
||||
zen.append(types.InlineQueryResultArticle(
|
||||
f"{id_p}", f'The Zen of Python #{id_p + 1}', types.InputTextMessageContent(
|
||||
f"<i>{phrase}</i>"), description=phrase))
|
||||
f"{phrase}"), description=phrase))
|
||||
|
||||
bot.answer_inline_query(inline_query.id, zen, cache_time=1200)
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ PYTHONCHATRU = -1001338616632 # pythonchatru
|
||||
|
||||
URL_RX = re.compile(r'\w+\.\w+/\w+')
|
||||
ALLOWED_WORDS = ['paste', 'nekobin', 'github', 'google', 'nometa', 'python', 'django', 'flask', 'fastapi', 'wiki',
|
||||
'stackoverflow', 'habr', 'medium', 'youtu', 'stepik', 'telegraph', '#rtfm', 'support']
|
||||
'stackoverflow', 'habr', 'medium', 'youtu', 'stepik', 'telegra', '#rtfm', 'support']
|
||||
|
||||
WHITEUN = set(os.environ.get('whitelist', '<<<ERR_USRS').split(','))
|
||||
WHITEIDS = {int(i) for i in os.environ.get('whiteids', '<<<ERR_IDS').split(',')}
|
||||
|
||||
Reference in New Issue
Block a user