Telegram-bot-sdk: I can't get command arguments in version 3.0

Created on 5 Mar 2020  路  1Comment  路  Source: irazasyed/telegram-bot-sdk

/**  
 * @inheritdoc
 * @return mixed
 */
public function handle()
{
    $arguments = $this->getArguments();
    dd($arguments);
call command in telegram: /location 101.1.2.3
output: []

How to get the command arguments in 3.0.0?

Most helpful comment

You need to set $pattern property in your command to what you're expecting.

Ex: $pattern = '{firstName} {lastName}'

>All comments

You need to set $pattern property in your command to what you're expecting.

Ex: $pattern = '{firstName} {lastName}'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nanangkoesharwanto picture nanangkoesharwanto  路  3Comments

jahanzaibbahadur picture jahanzaibbahadur  路  4Comments

Visionary89 picture Visionary89  路  5Comments

mccarlosen picture mccarlosen  路  3Comments

behnamazimi picture behnamazimi  路  4Comments