Skip to content

Misleading error message when replying to messages sent before bot was added to group #207

@Sync271

Description

@Sync271

Description

The bot shows the same error message for two different scenarios, which can be confusing for users.

Current Behavior

The bot responds with:

"Please reply to or forward the message you'd like to quote"

This message appears in both of these cases:

  1. When tagging the bot without replying to or forwarding any message (correct behavior)
  2. When tagging the bot in a reply to an older message that was sent before the bot was added to the group chat

Expected Behavior

The error message for case 2 should be different and more specific, such as:

"Unable to access this message. It may have been sent before I was added to this group."

This would help users understand why the bot can't quote the message, rather than implying they didn't reply to anything.

Steps to Reproduce

  1. Have a group chat with messages sent before the bot was added
  2. Add the bot to the group
  3. Reply to an old message (sent before the bot joined) and tag the bot
  4. Observe the misleading error message

Suggested Fix

Differentiate between:

  • No reply/forward detected → current message is fine
  • Reply detected but message content inaccessible → show a different, more descriptive error message

I'd be happy to submit a PR to fix this if you're open to contributions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions