Skip to content

CallbackqueryCommand -> executeCommand #1444

Open
@VAtapin

Description

@VAtapin

| Operating system | Ubuntu 20.04.6 LTS
| PHP Telegram Bot version | 0.81
| PHP version | 8.1.27
| MySQL version | x none
| Update Method | Webhook
| Self-signed certificate | no

On several occasions, I dedicated my evenings to solving a seemingly simple problem, only to discover a multitude of individuals facing the same challenge as myself. It became evident that this issue is systemic and demands clarification.

In the realm of inline keyboards, I diligently specified the callback_data argument, following the example provided by the bot. I received an alert as expected, accompanied by gratitude for the exemplary illustration. However, I encountered a stumbling block – a crucial piece of information was elusive. I couldn't find any guidance on how to execute a command, such as $this->getTelegram()->executeCommand('command'), when a button is pressed. This seems like a natural progression in the process. Why go through the trouble of implementing CallbackqueryCommand if this essential aspect is not addressed?

Regrettably, the example provided appears to be incomplete or, perhaps, insufficiently informative. Have I overlooked a crucial detail in the solution? Your guidance on this matter would be immensely appreciated. Thank you in advance for any hints you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions