1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 23:11:19 +01:00
This commit is contained in:
Daniil Gentili 2022-05-11 22:53:49 +02:00
parent 43dd0229e8
commit 0cd3517323
2 changed files with 4 additions and 4 deletions

View File

@ -36,12 +36,12 @@ $me = $MadelineProto->getSelf();
$MadelineProto->logger($me);
if (!$me['bot']) {
// This example uses PHP 8.0+ syntax with named arguments
$MadelineProto->messages->sendMessage(peer: '@danogentili', message: "Hi!\nThanks for creating MadelineProto (PHP 8)! <3"]);
// This example uses PHP 7.1+ syntax with arrays
$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => "Hi!\nThanks for creating MadelineProto (PHP 7)! <3"]);
// This example uses PHP 8.0+ syntax with named arguments
$MadelineProto->messages->sendMessage(peer: '@danogentili', message: "Hi!\nThanks for creating MadelineProto (PHP 8)! <3");
$MadelineProto->channels->joinChannel(channel: '@MadelineProto');
try {

2
docs

@ -1 +1 @@
Subproject commit 81ed0ba2f958f85cfaea90836ea76991e9345833
Subproject commit 32b251d5ba5ff19777c823395fd5dca36bb948e1