def removeKeyboard(chat_id): x = ReplyKeyboardRemove() requests.get( "https://api.telegram.org/bot{}/sendMessage?chat_id={}&text={}&reply_markup={}" .format(TOKEN, chat_id, "", x.to_json()))
def removepreviusmarkup(chatid): reply_markup = ReplyKeyboardRemove() res = requests.get( TELEGRAM_SEND_BOTTON_URL.format(chatid, "---", reply_markup.to_json()))