mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 15:06:41 +07:00
#4 made strict type checking
This commit is contained in:
parent
01211eae0f
commit
43aa09a88b
18 changed files with 138 additions and 82 deletions
|
@ -29,7 +29,7 @@ export class VkService {
|
|||
throw new Error("No vk groups to handle. Specify them in config");
|
||||
}
|
||||
|
||||
this.endpoint = config.endpoint;
|
||||
this.endpoint = config.endpoint || "/";
|
||||
|
||||
this.groups = config.groups.reduce(
|
||||
(acc, group) => ({
|
||||
|
@ -121,7 +121,7 @@ export class VkService {
|
|||
const handler = new vkEventToHandler[event](
|
||||
event,
|
||||
group,
|
||||
chan.id,
|
||||
chan,
|
||||
instance,
|
||||
this,
|
||||
this.telegram,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue