mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 23:25:41 +01:00
Show /image only if it is enabled in settings
This commit is contained in:
@@ -39,10 +39,13 @@ class ChatGPTTelegramBot:
|
||||
self.commands = [
|
||||
BotCommand(command='help', description=localized_text('help_description', bot_language)),
|
||||
BotCommand(command='reset', description=localized_text('reset_description', bot_language)),
|
||||
BotCommand(command='image', description=localized_text('image_description', bot_language)),
|
||||
BotCommand(command='stats', description=localized_text('stats_description', bot_language)),
|
||||
BotCommand(command='resend', description=localized_text('resend_description', bot_language))
|
||||
]
|
||||
# If imaging is enabled, add the "image" command to the list
|
||||
if self.config.get('enable_image_generation', False):
|
||||
self.commands.append(BotCommand(command='image', description=localized_text('image_description', bot_language)))
|
||||
|
||||
self.group_commands = [BotCommand(
|
||||
command='chat', description=localized_text('chat_description', bot_language)
|
||||
)] + self.commands
|
||||
|
||||
Reference in New Issue
Block a user