python电报机器人密码

问题描述 投票:0回答:0

要从电报机器人获取信息,您需要输入密码。如果密码不对,怎么写代码让它不提供信息,求助

def start(update: Update, context: CallbackContext):
    update.message.reply_text('Добро пожаловать')
    while True:
        Password = update.message.reply_text('введите пароль',update.message.text)
        if Password == "9900":
            update.message.reply_html('Imzo Factory', reply_markup=buttons)
            break
        else:
            update.message.reply_html('введите пароль')
python-3.x passwords telegram-bot python-telegram-bot
© www.soinside.com 2019 - 2024. All rights reserved.