1
私は私の電報ボットメッセージに次のようにカスタムボタンを追加したいと思いますが、私はPythonのPythonのボタンのオプション
と私のメッセージにそれらを埋め込む方法見当がつかない私は埋め込むしたいと思いますそれをこのメッセージに入れます。
def run(results, index, msgText):
# The message below this!
msg = '<b>Hello there, ' + results[index]['message']['from']['username'] + '!</b> I am <b>Makuna Hattata</b>, a spin-off bot of the original <b>Hakuna Mattata</b> bot \n\nI am a semi-smart bot capable of understanding basic commands, which you can see by pressing the button below!'
try:
sendMessage(index, results, msg, '&parse_mode=html')
logWorked(results[index]['message']['from']['username'], results[index]['message']['from']['id'], "/start message sent")
except Exception as err:
logError(results[index ]['message']['from']['username'], results[index]['message']['from']['id'], "/start message sent", err)
apiなしでそれを行う方法はありますか?私はAPIを使用しようとしていません。 – Splinxyy
いくつかのコードを追加してチェックアウトし、問題が解決するかどうかを確認します。 – cookiedough
それで、短縮しました、私は 'reply_markup'パラメータでsendmessageに送りますか? – Splinxyy