1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 18:51:13 +01:00

Update README.md
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/tag/build Pipeline failed
ci/woodpecker/tag/deploy unknown status

This commit is contained in:
Daniil Gentili 2022-11-24 09:30:39 +01:00 committed by GitHub
parent 9fc974b797
commit 42b162708b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,7 @@ $me = $MadelineProto->getSelf();
$MadelineProto->logger($me);
if (!$me['bot']) {
// 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->messages->sendMessage(peer: '@danogentili', message: "Hi!\nThanks for creating MadelineProto (PHP 8.1)! <3");
$MadelineProto->channels->joinChannel(channel: '@MadelineProto');