Skip to content

[Bug]: GatewayConfig has no attribute 'get' when sending /start on Telegram #973

@theojpeg

Description

@theojpeg

Bug Description

Sending /start to the Telegram bot triggers an AttributeError in the terminal.

Error Message

[Telegram] Error handling message: 'GatewayConfig' object has no attribute 'get'
Traceback (most recent call last):
File "/root/.hermes/hermes-agent/gateway/platforms/base.py", line 700, in _process_message_background
response = await self._message_handler(event)
File "/root/.hermes/hermes-agent/gateway/run.py", line 887, in _handle_message
quick_commands = self.config.get("quick_commands", {})
AttributeError: 'GatewayConfig' object has no attribute 'get'

But work normally after sending first message to the Telegram bot, it's just on the /start

Environment

  • OS: Ubuntu (Hetzner VPS)
  • Install method: official install.sh script

Steps to Reproduce

  1. Set up Hermes with a Telegram bot via the setup wizard
  2. Open Telegram and send /start to the bot
  3. Error appears in the terminal

Expected Behavior

The bot should respond to /start normally.

Actual Behavior

[Telegram] Error handling message: 'GatewayConfig' object has no attribute 'get'
Traceback (most recent call last):
File "/root/.hermes/hermes-agent/gateway/platforms/base.py", line 700, in _process_message_background
response = await self._message_handler(event)
File "/root/.hermes/hermes-agent/gateway/run.py", line 887, in _handle_message
quick_commands = self.config.get("quick_commands", {})
AttributeError: 'GatewayConfig' object has no attribute 'get'

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Operating System

Ubuntu 24.04.4 LTS

Python Version

3.11.15

Hermes Version

1.0.0

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions