Skip to content

Commit 24b4eb6

Browse files
author
Carla Apacani
committed
parche1
1 parent cb65c58 commit 24b4eb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/Commands/Command.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Telegram\Bot\Api;
66
use Telegram\Bot\Objects\Update;
7+
use Illuminate\Support\Str;
78

89
/**
910
* Class Command.
@@ -179,7 +180,7 @@ public function __call($method, $arguments)
179180
{
180181
$action = substr($method, 0, 9);
181182
if ($action === 'replyWith') {
182-
$reply_name = studly_case(substr($method, 9));
183+
$reply_name = Str::studly(substr($method, 9));
183184
$methodName = 'send'.$reply_name;
184185

185186
if (!method_exists($this->telegram, $methodName)) {

0 commit comments

Comments
 (0)