Skip to content

How to use Commands  #92

Closed
Closed
@HalimZamal

Description

@HalimZamal

I tried to use Commands..
first I created folder called "cmd" in root and then in webhook I enabled

$COMMANDS_FOLDER = DIR.'/cmd/';
$telegram->addCommandsPath($COMMANDS_FOLDER);

for example I want to try to use ForcereplyCommand.php in cmd folder. But I confused how to register the class and how to use that in another file.

please give me an idea to solved this..?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions