1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-05-23 20:34:46 +07:00

added working vk event handlers

This commit is contained in:
Fedor Katurov 2021-04-28 12:17:47 +07:00
parent 3f908da91e
commit 12c8e30a1e
8 changed files with 184 additions and 15 deletions
src/service/vk/handlers

View file

@ -0,0 +1,12 @@
import { VkEventHandler } from "./types";
import { ContextDefaultState, MessageContext } from "vk-io";
import { NextMiddleware } from "middleware-io";
export class MessageNewHandler extends VkEventHandler<
MessageContext<ContextDefaultState>
> {
public execute = async (context, next: NextMiddleware) => {
console.log("received message!");
await next();
};
}