Skip to content

Commit

Permalink
enable audio transcription for the telegram library bot and for the o…
Browse files Browse the repository at this point in the history
…ne dog
  • Loading branch information
pavel-zhur committed Jan 2, 2025
1 parent d66b31d commit c2042d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ protected override void OnInitializing(long userId, long chatId)
_dogDatabase.InitializeInteractionsRepositoryScope(_dogContext.DomainId);
}

protected override bool TranscribeAudio(Update update)
{
return false;
}

protected override bool CheckRelevant(Update update)
{
if (update.Message?.Chat.Id != _dogContext.Domain.ChatId) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public AiDialogHandler(ILogger<AiDialogHandler> logger,
_telegramOptions = telegramOptions.Value;
}

//protected override bool TranscribeAudio(Update update)
//{
// return false;
//}

protected override bool CheckRelevant(Update update)
{
if (update.Message?.Chat.Username != _telegramOptions.PublicDogChatId.Substring(1)) return false;
Expand Down

0 comments on commit c2042d4

Please sign in to comment.