Skip to content

Commit

Permalink
unpin chat before delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Mar 3, 2024
1 parent 7e38ddc commit 40d3289
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Stream {

await BrowserService.startAndWarmUpBrowserIfNeeded().catch(() => { console.error('startAndWarmUpBrowserIfNeeded on live')})
} else if (result && result.type === 'finished' && result.messageId) {
await telegramBot.unpinChatMessage(config.telegram.chatId, {message_id: result.messageId}).catch((err) => { console.error(`cannot unpin chat: ${err}`)})
await telegramBot.deleteMessage(config.telegram.chatId, result.messageId)
await TwitchService.deleteLastMessage()
await TwitchService.saveTitle(result.title)
Expand Down

0 comments on commit 40d3289

Please sign in to comment.