mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-20 22:24:57 +01:00
allow disabling image generation and transcriptions (#129)
This commit is contained in:
@@ -48,6 +48,8 @@ def main():
|
||||
'token': os.environ['TELEGRAM_BOT_TOKEN'],
|
||||
'admin_user_ids': os.environ.get('ADMIN_USER_IDS', '-'),
|
||||
'allowed_user_ids': os.environ.get('ALLOWED_TELEGRAM_USER_IDS', '*'),
|
||||
'enable_image_generation': os.environ.get('ENABLE_IMAGE_GENERATION', 'true').lower() == 'true',
|
||||
'enable_transcription': os.environ.get('ENABLE_TRANSCRIPTION', 'true').lower() == 'true',
|
||||
'monthly_user_budgets': os.environ.get('MONTHLY_USER_BUDGETS', '*'),
|
||||
'monthly_guest_budget': float(os.environ.get('MONTHLY_GUEST_BUDGET', '100.0')),
|
||||
'stream': os.environ.get('STREAM', 'true').lower() == 'true',
|
||||
|
||||
Reference in New Issue
Block a user