Skip to content

register_message_handler question #2004

@kelogsloops

Description

@kelogsloops

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using?
    latest
  2. What OS are you using?
    debian
  3. What version of python are you using?
    3.7

In a normal bot, I use the send_photo method to send a photo to the user with a set of reply keystrokes, called message_a. Afterwards I use the register_message_handler method to monitor bot.register_message_handler( callback = self.start_panel, content_types = ['text'],regexp = "Button_A"). I want to delete message_a when the user clicks on Button_A, but the only parameter passed to register_message_handler is the message for "Button_A". Is it not possible to pass the message of "message_A" into the callback function as well? How can I improve this?

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