mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-19 13:44:57 +01:00
Simplify telegram_config setter
This commit is contained in:
@@ -322,7 +322,7 @@ class ChatGPTTelegramBot:
|
||||
self.usage["guests"].add_transcription_seconds(audio_track.duration_seconds, transcription_price)
|
||||
|
||||
# check if transcript starts with any of the prefixes
|
||||
response_to_transcription = any(transcript.startswith(prefix) for prefix in self.config['voice_reply_prompts'])
|
||||
response_to_transcription = any(transcript.startswith(prefix) if prefix else False for prefix in self.config['voice_reply_prompts'])
|
||||
|
||||
if self.config['voice_reply_transcript'] and not response_to_transcription:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user