支持自定义帮助信息

This commit is contained in:
xtaodada 2021-06-20 18:59:31 +08:00
parent 17e8450f93
commit 66adec3d0e
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 1 deletions

View File

@ -25,5 +25,5 @@ OWNER = 0
CHANNEL = 0 CHANNEL = 0
# 帮助信息 # 帮助信息
HELP = '*Group Word Cloud Bot*\n\n/start - 查看此帮助信息\n/ping - 我还活着吗?\n/rank - 手动生成词云(绒布球)\n\n' \ HELP = '<b>Group Word Cloud Bot</b>\n\n/start - 查看此帮助信息\n/ping - 我还活着吗?\n/rank - 手动生成词云(绒布球)\n\n' \
'此项目开源于https://git.io/JnrvH' '此项目开源于https://git.io/JnrvH'

View File

@ -20,6 +20,7 @@ def start(update, context):
print('进入 start 函数') print('进入 start 函数')
update.message.reply_text( update.message.reply_text(
HELP, HELP,
parse_mode='HTML'
) )
except Exception as e: except Exception as e:
print(e) print(e)