Telegram.php
public function getUpdateType()
    {
        $update = $this->data;
        if (isset($update['inline_query'])) {
            return self::INLINE_QUERY;
        }
        if (isset($update['callback_query'])) {
            return self::CALLBACK_QUERY;
        }
        if (isset($update['edited_message'])) {
            return self::EDITED_MESSAGE;
        }
        if (isset($update['message']['text'])) {
            return self::MESSAGE;
        }
        if (isset($update['message']['photo'])) {
            return self::PHOTO;
        }
        if (isset($update['message']['video'])) {
            return self::VIDEO;
        }
        if (isset($update['message']['audio'])) {
            return self::AUDIO;
        }
        if (isset($update['message']['voice'])) {
            return self::VOICE;
        }
        if (isset($update['message']['contact'])) {
            return self::CONTACT;
        }
        if (isset($update['message']['location'])) {
            return self::LOCATION;
        }
        if (isset($update['message']['reply_to_message'])) {
            return self::REPLY;
        }
        if (isset($update['message']['animation'])) {
            return self::ANIMATION;
        }
        if (isset($update['message']['document'])) {
            return self::DOCUMENT;
        }
        if (isset($update['channel_post'])) {
            return self::CHANNEL_POST;
        }

        return false;
    }
public function getUpdateType()
    {
        $update = $this->data;
        if (isset($update['inline_query'])) {
            return self::INLINE_QUERY;
        }
        if (isset($update['callback_query'])) {
            return self::CALLBACK_QUERY;
        }
        if (isset($update['edited_message'])) {
            return self::EDITED_MESSAGE;
        }
        if (isset($update['message']['text'])) {
            return self::MESSAGE;
        }
        if (isset($update['message']['photo'])) {
            return self::PHOTO;
        }
        if (isset($update['message']['video'])) {
            return self::VIDEO;
        }
        if (isset($update['message']['audio'])) {
            return self::AUDIO;
        }
        if (isset($update['message']['voice'])) {
            return self::VOICE;
        }
        if (isset($update['message']['contact'])) {
            return self::CONTACT;
        }
        if (isset($update['message']['location'])) {
            return self::LOCATION;
        }
        if (isset($update['message']['reply_to_message'])) {
            return self::REPLY;
        }
        if (isset($update['message']['animation'])) {
            return self::ANIMATION;
        }
        if (isset($update['message']['document'])) {
            return self::DOCUMENT;
        }
        if (isset($update['channel_post'])) {
            return self::CHANNEL_POST;
        }

        return false;
    }
public function getUpdateType ( ) { $ update = $ this -> data ; if ( isset ( $ update [ 'inline_query' ] ) ) { return self :: INLINE_QUERY ; } if ( isset ( $ update [ 'callback_query' ] ) ) { return self :: CALLBACK_QUERY ; } if ( isset ( $ update [ 'edited_message' ] ) ) { return self :: EDITED_MESSAGE ; } if ( isset ( $ update [ 'message' ] [ 'text' ] ) ) { return self :: MESSAGE ; } if ( isset ( $ update [ 'message' ] [ 'photo' ] ) ) { return self :: PHOTO ; } if ( isset ( $ update [ 'message' ] [ 'video' ] ) ) { return self :: VIDEO ; } if ( isset ( $ update [ 'message' ] [ 'audio' ] ) ) { return self :: AUDIO ; } if ( isset ( $ update [ 'message' ] [ 'voice' ] ) ) { return self :: VOICE ; } if ( isset ( $ update [ 'message' ] [ 'contact' ] ) ) { return self :: CONTACT ; } if ( isset ( $ update [ 'message' ] [ 'location' ] ) ) { return self :: LOCATION ; } if ( isset ( $ update [ 'message' ] [ 'reply_to_message' ] ) ) { return self :: REPLY ; } if ( isset ( $ update [ 'message' ] [ 'animation' ] ) ) { return self :: ANIMATION ; } if ( isset ( $ update [ 'message' ] [ 'document' ] ) ) { return self :: DOCUMENT ; } if ( isset ( $ update [ 'channel_post' ] ) ) { return self :: CHANNEL_POST ; } return false ; }
Return current update type `False` on failure.

@return bool|string
Return current update type False on failure .