Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jun 13, 2019
1 parent 319f29d commit d9adbbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/docs/UPDATES.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class EventHandler extends \danog\MadelineProto\EventHandler
{
\danog\MadelineProto\Logger::log("Received an update of type ".$update['_']);
}
public function onUpdateSomethingElse($update)
{
// See the docs for a full list of updates: http://docs.madelineproto.xyz/API_docs/types/Update.html
}
public function onUpdateNewChannelMessage($update)
{
yield $this->onUpdateNewMessage($update);
Expand Down Expand Up @@ -142,9 +146,9 @@ class EventHandler extends \danog\MadelineProto\CombinedEventHandler
{
\danog\MadelineProto\Logger::log("Received an update of type ".$update['_']);
}
public function onLoop()
public function onUpdateSomethingElse($update, $session)
{
\danog\MadelineProto\Logger::log("Working...");
// See the docs for a full list of updates: http://docs.madelineproto.xyz/API_docs/types/Update.html
}
public function onUpdateNewChannelMessage($update, $session)
{
Expand Down

0 comments on commit d9adbbb

Please sign in to comment.