1

我已经使用 Pyrogram 发送了一个民意调查,但我不知道如何让用户回答!

例如:测验有 4 个答案,其中一个是正确的,当用户按下我想得到他们按下的答案之一时,这里是我的代码:

@app.on_message(filters.private & filters.text)
async def reply_message(client, message):

    quiz() #function returns global vars, question, answers, answerID
    
    await app.send_poll(chat_id=message.chat.id, question=question, options=answers, is_anonymous=False, type="quiz", correct_option_id=answerID)
4

0 回答 0