This commit is contained in:
hashbro
2026-08-07 05:46:46 +08:00
parent 78b61f85d2
commit 82f8a8fffe
9 changed files with 399 additions and 44 deletions
+5 -2
View File
@@ -128,7 +128,10 @@ class TelegramBotTest extends TestCase
->andReturn([
'ok' => true,
'txid' => 'deadbeef',
'from' => 'TFromAddressxxxxxxxxxxxxxxxxxxxxxxx',
'from' => 'TUEZSdKsoDHQMeZwihtdoBiN46zxhGWYdH',
'to' => 'TPayoutAddressxxxxxxxxxxxxxxxxxxxxxx',
'amount' => '10',
'asset' => 'USDT',
]);
$this->app->instance(TransferService::class, $mock);
@@ -141,7 +144,7 @@ class TelegramBotTest extends TestCase
]);
$bot->hearMessage([
'text' => '/transfer TUEZSdKsoDHQMeZwihtdoBiN46zxhGWYdH 10 USDT',
'text' => '/transfer TUEZSdKsoDHQMeZwihtdoBiN46zxhGWYdH USDT 10',
'chat' => ['id' => self::OWNER_CHAT, 'type' => ChatType::SUPERGROUP->value],
'from' => ['id' => self::USER_ID, 'is_bot' => false, 'first_name' => 'Owner'],
])->reply();