from vk_maria import Vk, types
from vk_maria.longpoll import LongPoll
from vk_maria.longpoll.filters import AbstractFilter
vk = Vk(access_token='token')
lp = LongPoll(vk)
class IsAdmin(AbstractFilter):
def check(self, event: types.Message):
return event.message.from_id == 121930743
@lp.message_handler(IsAdmin, commands=['/start'])
def cmd_start(event: types.Message):
event.reply("Hi there! What's your name?")