We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b25d8a commit b3baa99Copy full SHA for b3baa99
src/bot/index.ts
@@ -73,16 +73,13 @@ export class CopBot {
73
});
74
await this._bot.api.setWebhook(`${web_hook}`);
75
console.log(`Webhook set successfully to: ${web_hook}`);
76
- await this._bot.api.getUpdates({ offset: -1 });
77
await this._bot.start({
78
onStart: (botInfo) => {
79
console.log(`Bot started in Webhook mode! Username: ${botInfo.username}`);
80
},
81
82
} else {
83
try {
84
- await this._bot.api.deleteWebhook();
85
86
87
88
console.log(`Bot started in long-polling mode! Username: ${botInfo.username}`);
0 commit comments