Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_reply_to doesn't work with telegram backend #1647

Open
1 of 4 tasks
luginbash opened this issue Jun 24, 2023 · 0 comments
Open
1 of 4 tasks

in_reply_to doesn't work with telegram backend #1647

luginbash opened this issue Jun 24, 2023 · 0 comments

Comments

@luginbash
Copy link

Is your feature request related to a problem? Please describe.
What I wanted to do is:

class TestPlugin(BotPlugin):
  @botcmd
  def testcmd(self, msg: Message, _):
    self.send(self.build_identifier(msg.frm.room.id), text=_text, in_reply_to=msg.parent)

I noticed that msg.parent is always None with telegram backend, so i added it in a branch:

master...luginbash:errbot:luginbash/feature/telegram-msg-parent

Afterwards, the bot is able to get the parent of the message, but when viewing in telegram, it's not replying to the message it was referred to.

I tried to trace how BotPlugin calls bot.send() but it was a bit too complex, I think it would be easier for the authors to point out the links.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Is feature related to

  • Backend support
  • Plugins (storage, flows)
  • Functionality
  • Other

Additional context
Any help would be ... helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant