public function getRelatedMessage()
    {
        if ($this->has('message')) {
            return $this->getMessage();
        } elseif ($this->has('edited_message')) {
            return $this->getEditedMessage();
        } elseif ($this->has('callback_query')) {
            return $this->getCallbackQuery()->getMessage();
        } elseif ($this->has('channel_post')) {
            return $this->getChannelPost();
        } elseif ($this->has('edited_channel_post')) {
            return $this->getEditedChannelPost();
        }
    }
public function getRelatedMessage()
    {
        if ($this->has('message')) {
            return $this->getMessage();
        } elseif ($this->has('edited_message')) {
            return $this->getEditedMessage();
        } elseif ($this->has('callback_query')) {
            return $this->getCallbackQuery()->getMessage();
        } elseif ($this->has('channel_post')) {
            return $this->getChannelPost();
        } elseif ($this->has('edited_channel_post')) {
            return $this->getEditedChannelPost();
        }
    }
public function getRelatedMessage ( ) { if ( $ this -> has ( 'message' ) ) { return $ this -> getMessage ( ) ; } elseif ( $ this -> has ( 'edited_message' ) ) { return $ this -> getEditedMessage ( ) ; } elseif ( $ this -> has ( 'callback_query' ) ) { return $ this -> getCallbackQuery ( ) -> getMessage ( ) ; } elseif ( $ this -> has ( 'channel_post' ) ) { return $ this -> getChannelPost ( ) ; } elseif ( $ this -> has ( 'edited_channel_post' ) ) { return $ this -> getEditedChannelPost ( ) ; } }
Return the related message.

@return null|Message
Return the related message .