N
N
Nikita M.2020-12-14 17:44:48
Telegram
Nikita M., 2020-12-14 17:44:48

InlineKeyboardMarkup doesn't send keyboard via Telegram API. Why?

I send the keyboard through a post request, the request is processed, but the keyboard does not come to the chat. What could be the problem?

def sendKeyboard(self, text):
sendText = str(keyboard)
InlineKeyboardButton = {"text":"hey", "url":"http://google.com"}
keyboard = [InlineKeyboardButton]
inline_keyboard = [keyboard]
answer = {'chat_id': self.chat_id, 'text': sendText, 'reply_markup':inline_keyboard}
url = self.URL + "/sendMessage"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ambal245, 2020-12-17
@ambal245

You need to pass one more parameter
&parse_mode=markdown

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question