Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question