mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 21:31:28 +01:00
Update README.md
This commit is contained in:
parent
9fc974b797
commit
42b162708b
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user