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:
parent
5453e884c6
commit
9433cc327a
18 changed files with 687 additions and 70 deletions
|
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue