1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

#6 added stop message

This commit is contained in:
Fedor Katurov 2021-05-13 12:59:45 +07:00
parent 93f9898bdf
commit 31c6f100fc

View file

@ -101,11 +101,15 @@ export class TelegramService {
* @param signal
*/
public stop = (signal: string) => {
try {
if (this.isWebhookEnabled) {
return;
}
this.bot.stop(signal);
} finally {
logger.info("bot gracefully stopped");
}
};
/**