1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-25 06:56:40 +07:00

added http and telegram api services

This commit is contained in:
Fedor Katurov 2021-04-26 12:11:41 +07:00
parent 5453e884c6
commit 9433cc327a
18 changed files with 687 additions and 70 deletions

View file

@ -0,0 +1,20 @@
import { TelegramService } from "../../service/telegram";
import logger from "../../service/logger";
export class TelegramApi {
constructor(private telegram: TelegramService) {}
public listen() {
this.telegram.bot.command("ping", TelegramApi.ping);
return;
}
/**
* Handles ping command
*/
private static ping(ctx) {
return ctx.replyWithSticker(
"CAACAgIAAxkBAAIB6F82KSeJBEFer895bb7mFI7_GzYoAAISAAOwODIrOXeFNb5v4aEaBA"
);
}
}