# -*- coding: utf-8 -*-
import vk_api
from vk_api.keyboard import VkKeyboard, VkKeyboardColor
from vk_api.utils import get_random_id
def main():
vk_session = vk_api.VkApi(token='bot_api_token')
vk = vk_session.get_api()
keyboard = VkKeyboard(one_time=True)
keyboard.add_button('like', color=VkKeyboardColor.SECONDARY)
keyboard.add_button('comment', color=VkKeyboardColor.POSITIVE)
keyboard.add_line() # Переход на вторую строку
keyboard.add_location_button()
keyboard.add_line()
keyboard.add_vkpay_button(hash="action=transfer-to-group&group_id=74030368&aid=6222115")
keyboard.add_line()
keyboard.add_vkapps_button(app_id=6979558,
owner_id=-181108510,
label="task",
hash="sendKeyboard")
vk.messages.send(
peer_id=123456,
random_id=get_random_id(),
keyboard=keyboard.get_keyboard(),
message='Готово!'
)
if __name__ == '__main__':
main()