@bot.on(events.NewMessage(pattern='/start'))
async def start(event):
keyboard_buttons = ReplyKeyboardMarkup(
[
KeyboardButtonRow(
[
KeyboardButton(text='menu'),
KeyboardButton(text='menu')
]
),
KeyboardButtonRow(
[
KeyboardButton(text='menu'),
KeyboardButton(text='menu')
]
)
]
)
await bot.send_message(entity=event.peer_id, message='Привет', buttons=keyboard_buttons)
@bot.on(events.NewMessage(pattern='/start'))
async def start(event):
keyboard_buttons = ReplyKeyboardMarkup(
[
KeyboardButtonRow(
[
KeyboardButton(text='menu', ),
KeyboardButton(text='menu')
]
),
KeyboardButtonRow(
[
KeyboardButton(text='menu'),
KeyboardButton(text='menu')
]
)
],
resize=True
)
await bot.send_message(entity=event.peer_id, message='Привет', buttons=keyboard_buttons)