/** * @inheritdoc */ public function getMe() { return $this->getResult('getMe', [], function (stdClass $User) { return User::initializeByObject($User); }); }
/** * @param stdClass $Object message data object * @return $this self instance */ private function trySetLeftChatParticipant(stdClass $Object) { if (isset($Object->left_chat_participant)) { $this->LeftChatParticipant = User::initializeByObject($Object->left_chat_participant); } return $this; }