Skip to content

Commit

Permalink
fix pin message to Telegram with the correct message id property
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Feb 16, 2024
1 parent 2690385 commit c725352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Stream {
}

const msg = await bot.sendMessage(config.telegram.chatId, text, options)
await bot.pinChatMessage(config.telegram.chatId, msg.messageId).catch(() => {})
await bot.pinChatMessage(config.telegram.chatId, msg.message_id).catch(() => {})
await TwitchService.saveLastMessage(msg)
await TwitchService.saveTitle(result.title)
await BrowserService.startAndWarmUpBrowserIfNeeded().catch(() => { console.error('startAndWarmUpBrowserIfNeeded on live')})
Expand Down

0 comments on commit c725352

Please sign in to comment.