the bot!'
                  
                  
                  buttons = [
                  
                  
                      [KeyboardButton('Option 1'), KeyboardButton('Option 2')],
                  
                  
                      [KeyboardButton('Option 3')]
                  
                  
                  ]
                  
                  
                  markup = ReplyKeyboardMarkup(buttons, resize_keyboard=True)
                  
                  
                  await event.respond(message, reply_markup=markup)
                  
                  
                  
                  
                  
                  im getting this error:
                  
                  
                  TypeError: ReplyKeyboardMarkup.__init__() got an unexpected keyword argument 'resize_keyboard'
                  
                  
                
It's better you simply use telethon.Button.text(), and it's resize not resize_keyboard
Обсуждают сегодня