Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 22, 2023
1 parent 56a9af5 commit a80042a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 1 files
+6 −1 docs/docs/UPDATES.md
7 changes: 6 additions & 1 deletion examples/bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public function onStart(): void
$this->logger("The bot was started!");
$this->logger($this->getFullInfo('MadelineProto'));
$this->adminId = $this->getId(self::ADMIN);

$this->messages->sendMessage(
peer: self::ADMIN,
message: "The bot was started!"
);
}
/**
* Handle updates from supergroups and channels.
Expand Down Expand Up @@ -190,4 +195,4 @@ public function onUpdateNewMessage(array $update): void
SecretHandler::startAndLoop('bot.madeline', $settings);

// For bots only
SecretHandler::startAndLoopBot('bot.madeline', 'bot token', $settings);
// SecretHandler::startAndLoopBot('bot.madeline', 'bot token', $settings);

0 comments on commit a80042a

Please sign in to comment.