Skip to content

Commit

Permalink
fix launching for telegraf 4.11 breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Qusic committed Jan 23, 2023
1 parent 92a4597 commit 10e0f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -20,7 +20,7 @@ async function run() {
await bot.telegram.setMyCommands(
(await Promise.all(addons.map((addon) => addon.command()))).flatMap((items) => items)
)
await bot.launch()
bot.launch()
const server = http.listen(config.port, config.host)
addons.forEach((addon) => addon.run())
for (const event of ['SIGINT', 'SIGTERM']) {
Expand Down

0 comments on commit 10e0f79

Please sign in to comment.