Skip to content

Telegram forum topic responses not delivered to chat #727

@nathanjansen

Description

@nathanjansen

Description

Automatic responses from topic sessions in Telegram forum groups are not being delivered back to the Telegram chat, even though the response is generated successfully.

Steps to Reproduce

  1. Create a Telegram supergroup with forum/topics enabled
  2. Configure Clawdbot with telegram.groups.<groupId>.topics.<topicId> settings
  3. Set requireMention: false for the topic
  4. Send a message in the topic
  5. Observe that the session processes the message and generates a response, but the response is never delivered to Telegram

Expected Behavior

The response should be sent to the Telegram forum topic where the message originated.

Actual Behavior

  • Session receives the message ✅
  • Response is generated ✅
  • Response is NOT delivered to Telegram ❌

Workarounds Tested

Method Result
Direct curl to Telegram API ✅ Works
message tool with threadId ✅ Works
sessions_send to topic session ✅ Works (delivery: pending → delivered)
Automatic response from topic session ❌ Not delivered

Environment

  • Clawdbot version: 2026.1.10
  • Telegram group type: supergroup with is_forum: true
  • Bot setting: can_read_all_group_messages: true

Config Example

{
  "telegram": {
    "groups": {
      "-1003595003457": {
        "requireMention": false,
        "topics": {
          "14": {
            "requireMention": false,
            "systemPrompt": "..."
          }
        }
      }
    }
  }
}

Additional Notes

The issue appears to be in the response routing/delivery mechanism for forum topic sessions, not in message sending capability itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions