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:
parent
93f9898bdf
commit
31c6f100fc
1 changed files with 8 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue