Skip to content

Commit

Permalink
fix(telegram): fix oneTime (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvitora committed Apr 29, 2024
1 parent e9abfef commit 6304846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/channels/src/telegram/senders/common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Markup } from 'telegraf'
import { CommonSender } from '../../base/senders/common'
import { TelegramContext } from '../context'

Expand All @@ -7,6 +8,9 @@ export class TelegramCommonSender extends CommonSender {
const chatId = context.thread

for (const message of context.messages) {
// Force remove keyboard -> oneTime() not working https://github.com/telegraf/telegraf/issues/167
message.extra = { ...Markup.removeKeyboard(), ...message.extra }

if (message.action) {
await telegram.sendChatAction(chatId, message.action)
}
Expand Down

0 comments on commit 6304846

Please sign in to comment.