mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-05-15 00:26:40 +07:00
#4 added simple DB layer
This commit is contained in:
parent
f3a746efe8
commit
c0588acd26
15 changed files with 476 additions and 11 deletions
|
@ -6,6 +6,7 @@ import { VkService } from "../index";
|
|||
import { TelegramService } from "../../telegram";
|
||||
import { Template } from "../../template";
|
||||
import { PostNewHandler } from "./PostNewHandler";
|
||||
import { Storage } from "../../db";
|
||||
|
||||
interface Handler {
|
||||
new (
|
||||
|
@ -15,7 +16,8 @@ interface Handler {
|
|||
instance: GroupInstance,
|
||||
vk: VkService,
|
||||
telegram: TelegramService,
|
||||
template: Template<any, any>
|
||||
template: Template<any, any>,
|
||||
db: Storage
|
||||
): VkEventHandler;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue