private function exportReplyMarkupItem(TelegramTypes $markupItem): array
    {
        $finalArray = [];
        $cleanObject = new $markupItem;
        foreach ($markupItem as $fieldId => $value) {
            if ($markupItem->$fieldId !== $cleanObject->$fieldId) {
                $finalArray[$fieldId] = $markupItem->$fieldId;
            }
        }

        return $finalArray;
    }
private function exportReplyMarkupItem(TelegramTypes $markupItem): array
    {
        $finalArray = [];
        $cleanObject = new $markupItem;
        foreach ($markupItem as $fieldId => $value) {
            if ($markupItem->$fieldId !== $cleanObject->$fieldId) {
                $finalArray[$fieldId] = $markupItem->$fieldId;
            }
        }

        return $finalArray;
    }
private function exportReplyMarkupItem ( TelegramTypes $ markupItem ) : array { $ finalArray = [ ] ; $ cleanObject = new $ markupItem ; foreach ( $ markupItem as $ fieldId => $ value ) { if ( $ markupItem -> $ fieldId !== $ cleanObject -> $ fieldId ) { $ finalArray [ $ fieldId ] = $ markupItem -> $ fieldId ; } } return $ finalArray ; }
Does the definitive export of those fields in a reply markup item that are filled in

@param TelegramTypes $markupItem
@return array
Does the definitive export of those fields in a reply markup item that are filled in