def send_inline_keyboard(token, chat_id, message):
reply_markup = {
"inline_keyboard": [[
{
"text": "1",
"callback_data": 1,
},
{
"text": "2",
"callback_data": 2,
},
{
"text": "3",
"callback_data": 3,
},
{
"text": "4",
"callback_data": 4,
},
{
"text": "5",
"callback_data": 5,
},
{
"text": "6",
"callback_data": 6,
},
{
"text": "7",
"callback_data": 7,
},
{
"text": "8",
"callback_data": 8,
},
],]
}
reply_markup = json.dumps(reply_markup)
url = f"https://api.telegram.org/bot{token}/sendMessage?chat_id={chat_id}&text={message}&reply_markup={reply_markup}"
response = requests.get(url)
return response.status_code == 200, response.text